Revision 7db1712d Classes/Folder.m

b/Classes/Folder.m
18 18

  
19 19
+ (id)folder {
20 20
	Folder *folder = [[[self alloc] init] autorelease];
21
	folder.folders = [[NSMutableDictionary alloc] init];
22
	folder.objects = [[NSMutableDictionary alloc] init];
21
	folder.folders = [[[NSMutableDictionary alloc] init] autorelease];
22
	folder.objects = [[[NSMutableDictionary alloc] init] autorelease];
23 23
	return folder;
24 24
}
25 25

  
......
28 28

  
29 29
- (id)init {
30 30
    if (self = [super init]) {
31
        self.folders = [[NSMutableDictionary alloc] init];
32
        self.objects = [[NSMutableDictionary alloc] init];
31
        self.folders = [[[NSMutableDictionary alloc] init] autorelease];
32
        self.objects = [[[NSMutableDictionary alloc] init] autorelease];
33 33
    }
34 34
    return self;
35 35
}

Also available in: Unified diff