1
0
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:
Sebastien Helleu
2013-09-19 10:19:29 +02:00
parent 266b9e1e2a
commit 252feedde4
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -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;