Clean up.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1203 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Pfeiffer
2002-09-26 23:46:13 +00:00
parent 57e88ee89b
commit c615771892
4 changed files with 35 additions and 15 deletions
@@ -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);