Applied memory leak fixing patches

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17277 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2003-07-21 10:41:10 +00:00
parent 98a5680ea4
commit 195b45848e
10 changed files with 53 additions and 16 deletions

View file

@ -129,17 +129,12 @@ static NSImage *unexpandable = nil;
_itemDict = NSCreateMapTable(NSObjectMapKeyCallBacks,
NSObjectMapValueCallBacks,
64);
_items = [NSMutableArray array];
_expandedItems = [NSMutableArray array];
_items = [NSMutableArray new];
_expandedItems = [NSMutableArray new];
_levelOfItems = NSCreateMapTable(NSObjectMapKeyCallBacks,
NSObjectMapValueCallBacks,
64);
// Retain items
RETAIN(_items);
RETAIN(_expandedItems);
return self;
}