Permalink
Browse files

Fix memory leaks

  • Loading branch information...
1 parent 556b0ad commit a94c19436702c8242fec0c0a96bbc15fef7260cb @matthiasplappert committed Nov 8, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 InstapaperKit/IKDeserializer.m
@@ -112,6 +112,7 @@ + (id)objectFromJSONString:(NSString *)JSONString
user.subscribed = [[self _normalizedObjectForKey:@"subscription_is_active" inDictionary:dict] boolValue];
[result addObject:user];
+ [user release];
} else if ([type isEqualToString:@"bookmark"]) {
// Create bookmark object
@@ -129,6 +130,7 @@ + (id)objectFromJSONString:(NSString *)JSONString
bookmark.progressDate = [self _dateForKey:@"progress_timestamp" inDictionary:dict];
[result addObject:bookmark];
+ [bookmark release];
} else if ([type isEqualToString:@"folder"]) {
// Create folder object
@@ -140,6 +142,7 @@ + (id)objectFromJSONString:(NSString *)JSONString
folder.position = [[self _normalizedObjectForKey:@"position" inDictionary:dict] unsignedIntegerValue];
[result addObject:folder];
+ [folder release];
}
}

0 comments on commit a94c194

Please sign in to comment.