From a6884de30a7d1133cd25141f0cb4564534835ec4 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 8 Sep 2009 16:47:43 +0000 Subject: Fixed a really stupid memory corruption bug. --- Cydia.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Cydia.mm') 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 > 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 { -- cgit v1.2.3