diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2012-12-24 15:40:50 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2012-12-24 15:40:50 +0100 |
commit | 2597bafe367138ef7cbafd139a1e94da2befffd5 (patch) | |
tree | 7d141f6e88373665e1945321e35f1de480c69a85 | |
parent | 33f01dcb636b012c4d4dc95bc9d9978d7337dc97 (diff) | |
download | weechat-2597bafe367138ef7cbafd139a1e94da2befffd5.zip |
irc: fix crash when splitting a message with tags
-rw-r--r-- | src/plugins/irc/irc-message.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/irc/irc-message.c b/src/plugins/irc/irc-message.c index c1cd85382..34d224e13 100644 --- a/src/plugins/irc/irc-message.c +++ b/src/plugins/irc/irc-message.c @@ -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) |