1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

irc: fix crash when splitting a message with tags

This commit is contained in:
Sebastien Helleu
2012-12-24 15:40:50 +01:00
parent 33f01dcb63
commit 2597bafe36
+2 -2
View File
@@ -944,14 +944,14 @@ irc_message_split (struct t_irc_server *server, const char *message)
}
end:
if (tags)
free (tags);
if (!split_ok
|| (weechat_hashtable_get_integer (hashtable, "items_count") == 0))
{
irc_message_split_add (hashtable, 1, tags, message, arguments);
}
if (tags)
free (tags);
if (argv)
weechat_string_free_split (argv);
if (argv_eol)