Commit 07bcca1d authored by Felix Paul Kühne's avatar Felix Paul Kühne

src/darwin: fix crash while accessing http content while no proxy is set

parent 18c00a38
......@@ -46,6 +46,7 @@ char *vlc_getProxyUrl(const char *url)
CFNumberRef cfn_httpProxyOn =
(CFNumberRef)CFDictionaryGetValue(proxies,
kSCPropNetProxiesHTTPEnable);
if (cfn_httpProxyOn) {
int i_httpProxyOn;
CFNumberGetValue(cfn_httpProxyOn, kCFNumberIntType, &i_httpProxyOn);
CFRelease(cfn_httpProxyOn);
......@@ -84,6 +85,7 @@ char *vlc_getProxyUrl(const char *url)
}
CFRelease(httpProxy);
}
}
CFRelease(proxies);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment