diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2009-09-08 16:47:43 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-09-30 07:13:59 +0000 |
commit | a6884de30a7d1133cd25141f0cb4564534835ec4 (patch) | |
tree | 74e48fcf0e1200e0a56996b9980a499a19e91d78 | |
parent | 42543928d829e3076ed0ffe28872e76693838f89 (diff) |
Fixed a really stupid memory corruption bug.
-rw-r--r-- | Cydia.mm | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 { |