Skip to content

Commit

Permalink
Return an autoreleased object as callers expect rather than leaking t…
Browse files Browse the repository at this point in the history
…he dictionary.
  • Loading branch information
bdash committed Aug 21, 2009
1 parent 150718a commit f259b5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SUHost.m
Expand Up @@ -221,7 +221,7 @@ + (NSString *)systemVersionString
#endif
{
NSString *versionPlistPath = @"/System/Library/CoreServices/SystemVersion.plist";
verStr = [[[NSDictionary dictionaryWithContentsOfFile:versionPlistPath] objectForKey:@"ProductVersion"] retain];
verStr = [[NSDictionary dictionaryWithContentsOfFile:versionPlistPath] objectForKey:@"ProductVersion"];
}
return verStr;
}
Expand Down

0 comments on commit f259b5e

Please sign in to comment.