src/network/kernel/qnetworkproxy_mac.cpp
changeset 33 3e2da88830cd
parent 18 2f34d5167611
--- 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;
 }