summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2013-01-01 21:43:51 (GMT)
committerRemko Tronçon <git@el-tramo.be>2013-01-01 21:43:51 (GMT)
commita8e2d82a1be5e94ac39523fc3e0606fcc261e913 (patch)
tree48022f817444c2582b84da3e9a274f11d463ba9a /Swiften
parente58f7c45a06f72f04f9f30faac909624f3a7c60d (diff)
downloadswift-a8e2d82a1be5e94ac39523fc3e0606fcc261e913.zip
swift-a8e2d82a1be5e94ac39523fc3e0606fcc261e913.tar.bz2
Fix Objective-C memory bugs.
Change-Id: I8de0fc13373633cc99892bc8380072f382f685ed
Diffstat (limited to 'Swiften')
-rw-r--r--Swiften/Network/MacOSXProxyProvider.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Swiften/Network/MacOSXProxyProvider.cpp b/Swiften/Network/MacOSXProxyProvider.cpp
index a07c258..8032a42 100644
--- a/Swiften/Network/MacOSXProxyProvider.cpp
+++ b/Swiften/Network/MacOSXProxyProvider.cpp
@@ -87,6 +87,7 @@ HostAddressPort MacOSXProxyProvider::getHTTPConnectProxy() const {
CFDictionaryRef proxies = SCDynamicStoreCopyProxies(NULL);
if(proxies != NULL) {
result = getFromDictionary(proxies, kSCPropNetProxiesHTTPEnable, kSCPropNetProxiesHTTPProxy, kSCPropNetProxiesHTTPPort);
+ CFRelease(proxies);
}
#endif
return result;
@@ -98,8 +99,8 @@ HostAddressPort MacOSXProxyProvider::getSOCKS5Proxy() const {
CFDictionaryRef proxies = SCDynamicStoreCopyProxies(NULL);
if(proxies != NULL) {
result = getFromDictionary(proxies, kSCPropNetProxiesSOCKSEnable, kSCPropNetProxiesSOCKSProxy, kSCPropNetProxiesSOCKSPort);
+ CFRelease(proxies);
}
- CFRelease(proxies);
#endif
return result;
}