Permalink
Browse files

Add an autorelease pool around +[TUIAnimationManager load], even thou…

…gh it's not strictly necessary
  • Loading branch information...
1 parent 2f9520e commit 56282118755a36178e14c637d3be3842a6873b3e @jspahrsummers jspahrsummers committed Jul 18, 2012
Showing with 8 additions and 6 deletions.
  1. +8 −6 lib/Support/TUIAnimationManager.m
@@ -57,12 +57,14 @@ - (void)setMainRunLoopObserver:(CFRunLoopObserverRef)observer {
#pragma mark Lifecycle
+ (void)load {
- [[NSNotificationCenter defaultCenter]
- addObserver:[self defaultManager]
- selector:@selector(applicationDidFinishLaunchingNotification:)
- name:NSApplicationDidFinishLaunchingNotification
- object:nil
- ];
+ @autoreleasepool {
+ [[NSNotificationCenter defaultCenter]
+ addObserver:[self defaultManager]
+ selector:@selector(applicationDidFinishLaunchingNotification:)
+ name:NSApplicationDidFinishLaunchingNotification
+ object:nil
+ ];
+ }
}
+ (TUIAnimationManager *)defaultManager; {

0 comments on commit 5628211

Please sign in to comment.