Prevent crashes in twc_chat_refresh.
This commit is contained in:
parent
7fdb643282
commit
4811c7bc66
@ -156,8 +156,10 @@ 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);
|
||||||
|
|
||||||
free(name);
|
if (name)
|
||||||
free(title);
|
free(name);
|
||||||
|
if (title && title != name)
|
||||||
|
free(title);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user