summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-10 20:50:50 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-10 20:50:50 -0800
commitb6f9e52acfe57d119e3f85cd5982497be0a491e8 (patch)
tree3f1d117f4921710d44392ad190c723a725ec28d3
parentaec64d4664f94bca5a577575411ed1b892f1f5cb (diff)
Slightly safer package.getField() memory management.
-rw-r--r--MobileCydia.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index b359380..6b23cf5 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -2194,7 +2194,7 @@ struct PackageNameOrdering :
if (!parser.Find([name UTF8String], start, end))
return (NSString *) [NSNull null];
- return [(NSString *) CYStringCreate(start, end - start) autorelease];
+ return [NSString stringWithString:[(NSString *) CYStringCreate(start, end - start) autorelease]];
} }
- (void) parse {