summaryrefslogtreecommitdiff
path: root/Cydia.mm
diff options
context:
space:
mode:
Diffstat (limited to 'Cydia.mm')
-rw-r--r--Cydia.mm5
1 files changed, 4 insertions, 1 deletions
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<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 {