Fix resource leakage
CID 10828
This commit is contained in:
parent
363c147d86
commit
342169dfe2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user