From 12b7669a2bb7d4b93c01af5a98a436eb4529d4bd Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Tue, 8 Sep 2009 16:47:43 +0000 Subject: [PATCH] Fixed a really stupid memory corruption bug. --- Cydia.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 { -- 2.45.2