Skip to content

Commit

Permalink
Adding __autoreleasing compile time annotation to prevent potential d…
Browse files Browse the repository at this point in the history
…ouble releases
  • Loading branch information
jdewind committed Jan 29, 2014
1 parent 9bf86ba commit 455489f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/JSObjectionUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ static objc_property_t GetProperty(Class klass, NSString *propertyName) {

static id BuildObjectWithInitializer(Class klass, SEL initializer, NSArray *arguments) {
NSMethodSignature *signature = [klass methodSignatureForSelector:initializer];
id instance = nil;
__autoreleasing id instance = nil;
BOOL isClassMethod = signature != nil && initializer != @selector(init);

if (!isClassMethod) {
Expand Down

0 comments on commit 455489f

Please sign in to comment.