Permalink
Browse files

Merge pull request #41 from Objective-Zero/patch-1

Singleton Potential Leak Fix
  • Loading branch information...
2 parents 6e340c4 + 6f0750e commit 3b122796c58d167ba93a84dc754fcb944d105654 @barrettj barrettj committed Apr 9, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 BlockAlertsDemo/ToAddToYourProjects/BlockBackground.m
@@ -23,10 +23,10 @@ + (BlockBackground*)sharedInstance
@synchronized(self) {
if (_sharedInstance == nil) {
- [[[self alloc] init] autorelease];
+ _sharedInstance = [[self alloc] init];
}
}
-
+
return _sharedInstance;
}

0 comments on commit 3b12279

Please sign in to comment.