From e65fb49a85686025fc287c8288707a2fed1b7b2a Mon Sep 17 00:00:00 2001 From: Ryan Leavengood Date: Fri, 12 Sep 2008 06:34:39 +0000 Subject: [PATCH] Apply Michael Pfeiffer's advice and move the delete outside the if. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27436 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/preferences/print/PrinterListView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/preferences/print/PrinterListView.cpp b/src/preferences/print/PrinterListView.cpp index 38404bae70..10de28b93a 100644 --- a/src/preferences/print/PrinterListView.cpp +++ b/src/preferences/print/PrinterListView.cpp @@ -268,8 +268,8 @@ PrinterItem::PrinterItem(PrintersWindow* window, const BDirectory& node) sSelectedIcon->Unlock(); delete view; } - delete checkMark; } + delete checkMark; } // Get Name of printer