Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Singleton Potential Leak Fix #41

Merged
merged 1 commit into from

2 participants

@Objective-Zero

This pull, fixes a potential leak that the analyzer shows. 

@Objective-Zero Objective-Zero Singleton Potential Leak Fix
This pull, fixes a potential leak that the analyzer shows. 
6f0750e
@barrettj barrettj merged commit 3b12279 into from
@barrettj
Collaborator

Thanks for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 3, 2013
  1. @Objective-Zero

    Singleton Potential Leak Fix

    Objective-Zero authored
    This pull, fixes a potential leak that the analyzer shows. 
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 BlockAlertsDemo/ToAddToYourProjects/BlockBackground.m
View
4 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;
}
Something went wrong with that request. Please try again.