Skip to content
Browse files

Return an autoreleased object as callers expect rather than leaking t…

…he dictionary.
  • Loading branch information...
1 parent 150718a commit f259b5e825098e8695713e16a39cf9d9b4d90edc Mark Rowe committed Aug 21, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 SUHost.m
View
2 SUHost.m
@@ -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;
}

0 comments on commit f259b5e

Please sign in to comment.
Something went wrong with that request. Please try again.