]> jfr.im git - irc/hexchat/hexchat.git/commit
Avoid direct use of libproxy
authorMichael Catanzaro <redacted>
Mon, 12 Jul 2021 13:38:02 +0000 (08:38 -0500)
committerPatrick <redacted>
Mon, 12 Jul 2021 16:29:15 +0000 (11:29 -0500)
commit25440a07c3b421134b4376d7db3ee4b7ed57ad98
tree73f110696622d7246bf3d64c4ab82f8f67bffe26
parent869a8d7ab335cf785e06450e4ab1ca02a9f5005f
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).
meson.build
meson_options.txt
src/common/hexchat.c
src/common/meson.build
src/common/server.c
src/fe-gtk/setup.c