Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…gh it's not strictly necessary
  • Loading branch information...
commit 56282118755a36178e14c637d3be3842a6873b3e 1 parent 2f9520e
@jspahrsummers jspahrsummers authored
Showing with 8 additions and 6 deletions.
  1. +8 −6 lib/Support/TUIAnimationManager.m
View
14 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; {
Please sign in to comment.
Something went wrong with that request. Please try again.