From cc20520bd29c88d424f44ac5669c3026e9fd99fb Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Thu, 2 Dec 2010 12:14:09 +0000 Subject: Clean up pastebuf_timer when cleaning up channels, and properly clean up channel-chatroom reference when leaving a chatroom. This fixes two very similar crash bugs when leaving a chatroom within the paste_buffer_delay period. --- irc_channel.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'irc_channel.c') diff --git a/irc_channel.c b/irc_channel.c index 15b1744a..03fe93e9 100644 --- a/irc_channel.c +++ b/irc_channel.c @@ -142,6 +142,8 @@ int irc_channel_free( irc_channel_t *ic ) iu->last_channel = irc->default_channel; } + if( ic->pastebuf_timer ) b_event_remove( ic->pastebuf_timer ); + g_free( ic->name ); g_free( ic->topic ); g_free( ic->topic_who ); -- cgit v1.2.3