Revision 7db1712d Classes/Archiver.m

b/Classes/Archiver.m
15 15
    NSString *documentsDirectory = [paths objectAtIndex:0];
16 16
    NSString *filePath = [documentsDirectory stringByAppendingString:[NSString stringWithFormat:@"/%@.archive", key]];
17 17
//    NSLog(@"filepath: %@", filePath);
18
    return [[NSKeyedUnarchiver unarchiveObjectWithFile:filePath] retain];
18
    return [NSKeyedUnarchiver unarchiveObjectWithFile:filePath];
19 19
    /* TODO: fixme on potential leak - "retrieve" doesn't match copy or alloc pattern, and hence should be returning autoreleased object
20 20
     * Not changing right now, but documenting for later fixing - need to see how and where [Archiver.. retrieve:key] is used to make sure 
21 21
     * switching this won't cause a crash

Also available in: Unified diff