From 97cec0bd462517dac6ce1715e082f26ef69a8d6b Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Sat, 30 Jan 2010 03:28:25 +0000 Subject: [PATCH] Monotone-Parent: 73c3b8716e12cb6d361af496dd5f7ad91837812d Monotone-Revision: f9c7627cbadcae704407f1e9336a6279f94cd133 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2010-01-30T03:28:25 Monotone-Branch: ca.inverse.sogo --- UI/Common/UIxToolbar.m | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/UI/Common/UIxToolbar.m b/UI/Common/UIxToolbar.m index 941600a3e..e5878a5f1 100644 --- a/UI/Common/UIxToolbar.m +++ b/UI/Common/UIxToolbar.m @@ -60,20 +60,10 @@ [toolbarGroup release]; [toolbarConfig release]; [buttonInfo release]; - if (toolbar) - [toolbar release]; + [toolbar release]; [super dealloc]; } -/* notifications */ - -- (void)sleep { - [toolbarGroup release]; toolbarGroup = nil; - [toolbarConfig release]; toolbarConfig = nil; - [buttonInfo release]; buttonInfo = nil; - [super sleep]; -} - /* accessors */ - (void)setToolbarGroup:(id)_group { @@ -187,7 +177,7 @@ else tb = [self loadToolbarConfigFromResourceNamed:tb]; } - + toolbarConfig = [tb retain]; return toolbarConfig;