diff -r 5dc02b23752f -r 3e2da88830cd src/network/kernel/qnetworkproxy_mac.cpp --- a/src/network/kernel/qnetworkproxy_mac.cpp Tue Jul 06 15:10:48 2010 +0300 +++ b/src/network/kernel/qnetworkproxy_mac.cpp Wed Aug 18 10:37:55 2010 +0300 @@ -157,8 +157,10 @@ return result; // failed } - if (isHostExcluded(dict, query.peerHostName())) + if (isHostExcluded(dict, query.peerHostName())) { + CFRelease(dict); return result; // no proxy for this host + } // is there a PAC enabled? If so, use it first. CFNumberRef pacEnabled; @@ -222,6 +224,7 @@ result << https; } + CFRelease(dict); return result; }