From 8c983152ee8f67fe804e7986ef5d9fdb2ecfc388 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Mon, 5 Dec 2011 16:42:05 +0000 Subject: [PATCH] Monotone-Parent: dd98907b2d09b3cd66d8a6ef15da440b85e98478 Monotone-Revision: 7be89eb338128de0cf7f68aeb1ed4852cf15bc96 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-12-05T16:42:05 --- UI/Scheduler/UIxComponentEditor.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/UI/Scheduler/UIxComponentEditor.m b/UI/Scheduler/UIxComponentEditor.m index 6fd48ee8e..662eaa99e 100644 --- a/UI/Scheduler/UIxComponentEditor.m +++ b/UI/Scheduler/UIxComponentEditor.m @@ -998,7 +998,13 @@ iRANGE(2); - (void) setCategory: (NSString *) newCategory { - ASSIGN (categories, [NSArray arrayWithObject: newCategory]); + if (newCategory) + ASSIGN (categories, [NSArray arrayWithObject: newCategory]); + else + { + [categories release]; + categories = nil; + } } - (NSString *) category