irc: fix memory leak when the channel topic is changed
This commit is contained in:
parent
72b107a970
commit
bb62485aa9
@ -22,6 +22,10 @@ New features::
|
|||||||
|
|
||||||
* api: add info "weechat_headless" (issue #1433)
|
* api: add info "weechat_headless" (issue #1433)
|
||||||
|
|
||||||
|
Bug fixes::
|
||||||
|
|
||||||
|
* irc: fix memory leak when the channel topic is changed
|
||||||
|
|
||||||
Build::
|
Build::
|
||||||
|
|
||||||
* irc: fix build with GnuTLS < 3.1.0 (issue #1431)
|
* irc: fix build with GnuTLS < 3.1.0 (issue #1431)
|
||||||
|
@ -557,9 +557,13 @@ irc_channel_set_buffer_title (struct t_irc_channel *channel)
|
|||||||
channel->topic,
|
channel->topic,
|
||||||
(weechat_config_boolean (irc_config_look_topic_strip_colors)) ? 0 : 1);
|
(weechat_config_boolean (irc_config_look_topic_strip_colors)) ? 0 : 1);
|
||||||
weechat_buffer_set (channel->buffer, "title", title_color);
|
weechat_buffer_set (channel->buffer, "title", title_color);
|
||||||
|
if (title_color)
|
||||||
|
free (title_color);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
weechat_buffer_set (channel->buffer, "title", "");
|
weechat_buffer_set (channel->buffer, "title", "");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user