Fix resource leakage

CID 10828
This commit is contained in:
Philippe Saint-Pierre 2011-11-27 23:23:08 -05:00
parent 363c147d86
commit 342169dfe2

View File

@ -227,8 +227,10 @@ PrintersWindow::PrintTestPage(PrinterItem* printer)
// job->ConfigJob();
BMessage* settings = job->Settings();
if (settings == NULL)
if (settings == NULL) {
delete job;
return;
}
// enforce job config properties
settings->AddInt32("copies", 1);