diff --git a/sources/UFSNotificationList.m b/sources/UFSNotificationList.m index c0e8b9e..9da5ea9 100644 --- a/sources/UFSNotificationList.m +++ b/sources/UFSNotificationList.m @@ -38,7 +38,7 @@ - (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"]; @@ -46,14 +46,14 @@ - (BOOL)addAPI:(NSString *)api action:(NSString *)action type:(NSString *)type t 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];