mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-10 07:50:19 +00:00
Avoid direct use of libproxy
Since hexchat already depends on GLib, it's better to use GProxyResolver instead. This might use libproxy, or not, as appropriate. P.S. This removes a memory safety issue because proxy_list is allocated using malloc(), not g_malloc(), and therefore using g_strfreev() is incorrect. The proper way to free the proxy list returned by libproxy is to use px_proxy_factory_free_proxies() (but nobody does that because it was added in libproxy 0.4.16, which is somewhat recent).
This commit is contained in:
committed by
Patrick
parent
869a8d7ab3
commit
25440a07c3
@@ -77,10 +77,6 @@ if get_option('with-ssl')
|
||||
common_deps += libssl_dep
|
||||
endif
|
||||
|
||||
if get_option('with-libproxy')
|
||||
common_deps += dependency('libproxy-1.0')
|
||||
endif
|
||||
|
||||
if get_option('with-libcanberra')
|
||||
common_deps += dependency('libcanberra', version: '>= 0.22')
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user