mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Check that it's IRC-channel we're destroying before doing any IRC-specific
deinitialization. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1952 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
083bdc74be
commit
f6fea30ff5
@ -162,7 +162,8 @@ void invitelist_remove(IRC_CHANNEL_REC *channel, const char *mask)
|
||||
|
||||
static void channel_destroyed(IRC_CHANNEL_REC *channel)
|
||||
{
|
||||
g_return_if_fail(channel != NULL);
|
||||
if (!IS_IRC_CHANNEL(channel))
|
||||
return;
|
||||
|
||||
banlist_free(channel->banlist);
|
||||
banlist_free(channel->ebanlist);
|
||||
|
Loading…
Reference in New Issue
Block a user