Prevent crashes in twc_chat_refresh.

This commit is contained in:
Håvard Pettersson 2014-11-18 16:03:49 +01:00
parent 7fdb643282
commit 4811c7bc66

View File

@ -156,7 +156,9 @@ twc_chat_refresh(struct t_twc_chat *chat)
weechat_buffer_set(chat->buffer, "short_name", name); weechat_buffer_set(chat->buffer, "short_name", name);
weechat_buffer_set(chat->buffer, "title", title); weechat_buffer_set(chat->buffer, "title", title);
if (name)
free(name); free(name);
if (title && title != name)
free(title); free(title);
} }