diff options
author | Wilmer van der Gaast <wilmer@google.com> | 2010-12-02 12:14:09 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@google.com> | 2010-12-02 12:14:09 +0000 |
commit | cc20520bd29c88d424f44ac5669c3026e9fd99fb (patch) | |
tree | a11bdacd994046ce25a4e654c3d88a22724530a8 /irc_channel.c | |
parent | b11b781cc66fa7ffeaa96e7a21b9d5b528d2c4a4 (diff) |
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.
Diffstat (limited to 'irc_channel.c')
-rw-r--r-- | irc_channel.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 ); |