summaryrefslogtreecommitdiff
path: root/Cydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2009-09-08 16:47:43 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:13:59 +0000
commita6884de30a7d1133cd25141f0cb4564534835ec4 (patch)
tree74e48fcf0e1200e0a56996b9980a499a19e91d78 /Cydia.mm
parent42543928d829e3076ed0ffe28872e76693838f89 (diff)
Fixed a really stupid memory corruption bug.
Diffstat (limited to 'Cydia.mm')
-rw-r--r--Cydia.mm5
1 files changed, 4 insertions, 1 deletions
diff --git a/Cydia.mm b/Cydia.mm
index fd160df..579d17f 100644
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -1622,9 +1622,12 @@ typedef std::map< unsigned long, _H<Source> > SourceMap;
host_ = [[host_ lowercaseString] retain];
if (host_ != nil)
- authority_ = [host_ retain];
+ authority_ = host_;
else
authority_ = [url path];
+
+ if (authority_ != nil)
+ authority_ = [authority_ retain];
}
- (Source *) initWithMetaIndex:(metaIndex *)index inPool:(apr_pool_t *)pool {