mirror of
https://github.com/weechat/weechat.git
synced 2026-07-10 11:43:13 +02:00
core: fix memory leak in unhook of hook_connect
This commit is contained in:
@@ -7,6 +7,7 @@ v0.3.6-dev, 2011-08-25
|
||||
Version 0.3.6 (under dev!)
|
||||
--------------------------
|
||||
|
||||
* core: fix memory leak in unhook of hook_connect
|
||||
* core: fix memory leak in display of empty bar items
|
||||
* core: fix input of wide UTF-8 chars under Cygwin (bug #34061)
|
||||
* core: allow name of buffer for command /buffer clear (task #11269)
|
||||
|
||||
@@ -3073,6 +3073,10 @@ unhook (struct t_hook *hook)
|
||||
free (HOOK_CONNECT(hook, proxy));
|
||||
if (HOOK_CONNECT(hook, address))
|
||||
free (HOOK_CONNECT(hook, address));
|
||||
#ifdef HAVE_GNUTLS
|
||||
if (HOOK_CONNECT(hook, gnutls_priorities))
|
||||
free (HOOK_CONNECT(hook, gnutls_priorities));
|
||||
#endif
|
||||
if (HOOK_CONNECT(hook, local_hostname))
|
||||
free (HOOK_CONNECT(hook, local_hostname));
|
||||
if (HOOK_CONNECT(hook, hook_fd))
|
||||
|
||||
Reference in New Issue
Block a user