]> git.saurik.com Git - cydia.git/commitdiff
Fixed a really stupid memory corruption bug.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 8 Sep 2009 16:47:43 +0000 (16:47 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 30 Sep 2010 07:13:59 +0000 (07:13 +0000)
Cydia.mm

index fd160dfa7e8b039182fc12c1dc1fe81585c25223..579d17f4fd63dba3a227bd2356a2f020662889a2 100644 (file)
--- 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 {