mirror of
https://github.com/weechat/weechat.git
synced 2026-07-05 09:13:14 +02:00
core: fix memory leak on unhook of a print hook (if using tags)
This commit is contained in:
@@ -3333,6 +3333,8 @@ unhook (struct t_hook *hook)
|
||||
#endif
|
||||
break;
|
||||
case HOOK_TYPE_PRINT:
|
||||
if (HOOK_PRINT(hook, tags_array))
|
||||
string_free_split (HOOK_PRINT(hook, tags_array));
|
||||
if (HOOK_PRINT(hook, message))
|
||||
free (HOOK_PRINT(hook, message));
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user