Skip to content

Commit

Permalink
Attempt fixing memory issue
Browse files Browse the repository at this point in the history
  • Loading branch information
uroboro committed Jul 13, 2016
1 parent 30c0756 commit 1ef93c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sources/UFSNotificationList.m
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,22 @@ - (BOOL)addAPI:(NSString *)api action:(NSString *)action type:(NSString *)type t
if (!d) {
d = [NSMutableDictionary new];
[_notifications setObject:d forKey:notificationName];
[d release];
[d autorelease];
}

[d setObject:type forKey:@"type"];

if (![d objectForKey:@"APIs"]) {
NSMutableArray *a = [NSMutableArray new];
[d setObject:a forKey:@"APIs"];
[a release];
[a autorelease];
}
[[d objectForKey:@"APIs"] addObject:api];

if (![d objectForKey:@"actions"]) {
NSMutableArray *a = [NSMutableArray new];
[d setObject:a forKey:@"actions"];
[a release];
[a autorelease];
}
[[d objectForKey:@"actions"] addObject:action];

Expand Down

0 comments on commit 1ef93c1

Please sign in to comment.