Free topic array on channel deletion.

The topic array in the CHANNEL structure must be free()'d before the
channel itself becomes deleted.
This commit is contained in:
Alexander Barton 2009-01-04 15:22:32 +01:00
parent fd9266df78
commit 18efc7469c
1 changed files with 3 additions and 3 deletions

View File

@ -1086,9 +1086,9 @@ Delete_Channel( CHANNEL *Chan )
Log( LOG_DEBUG, "Freed channel structure for \"%s\".", Chan->name );
/* free invite and ban lists */
Lists_Free( &chan->list_bans );
Lists_Free( &chan->list_invites );
array_free(&chan->topic);
Lists_Free(&chan->list_bans);
Lists_Free(&chan->list_invites);
/* maintain channel list */
if( last_chan ) last_chan->next = chan->next;