From: Jay Freeman (saurik) Date: Tue, 8 Sep 2009 16:47:43 +0000 (+0000) Subject: Fixed a really stupid memory corruption bug. X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/12b7669a2bb7d4b93c01af5a98a436eb4529d4bd?ds=inline Fixed a really stupid memory corruption bug. --- diff --git a/Cydia.mm b/Cydia.mm index fd160dfa..579d17f4 100644 --- a/Cydia.mm +++ b/Cydia.mm @@ -1622,9 +1622,12 @@ typedef std::map< unsigned long, _H > 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 {