Clean up.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1203 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -108,8 +108,8 @@ PrintServerApp::HandleScriptingCommand(BMessage* msg)
|
||||
Printer* printer = GetPrinterFromSpecifier(&spec);
|
||||
status_t rc = B_BAD_VALUE;
|
||||
|
||||
if (printer != NULL && (rc=printer->Remove()) == B_OK) {
|
||||
printer->Release();
|
||||
if (printer != NULL) {
|
||||
rc=printer->Remove();
|
||||
}
|
||||
|
||||
BMessage reply(B_REPLY);
|
||||
|
||||
Reference in New Issue
Block a user