diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/irc/irc-channel.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-channel.c b/src/plugins/irc/irc-channel.c index a67358cbe..07244db19 100644 --- a/src/plugins/irc/irc-channel.c +++ b/src/plugins/irc/irc-channel.c @@ -557,9 +557,13 @@ irc_channel_set_buffer_title (struct t_irc_channel *channel) channel->topic, (weechat_config_boolean (irc_config_look_topic_strip_colors)) ? 0 : 1); weechat_buffer_set (channel->buffer, "title", title_color); + if (title_color) + free (title_color); } else + { weechat_buffer_set (channel->buffer, "title", ""); + } } /* |