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