Skip to content

Commit

Permalink
Fixed memory leak when reloading saved logs
Browse files Browse the repository at this point in the history
  • Loading branch information
fpillet committed Apr 1, 2012
1 parent cae8a14 commit 23ca543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Desktop Viewer/Classes/LoggerDocument.m
Expand Up @@ -271,7 +271,7 @@ - (BOOL)readFromData:(NSData *)data ofType:(NSString *)typeName error:(NSError *

if ([typeName isEqualToString:@"NSLogger Data"])
{
id logs = [[NSKeyedUnarchiver unarchiveObjectWithData:data] retain];
id logs = [NSKeyedUnarchiver unarchiveObjectWithData:data];
if ([logs isKindOfClass:[LoggerConnection class]])
[attachedLogs addObject:logs];
else
Expand Down

0 comments on commit 23ca543

Please sign in to comment.