1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-12-04 14:09:57 +00:00

Free topic array on channel deletion.

The topic array in the CHANNEL structure must be free()'d before the
channel itself becomes deleted.

(backport of commit 18efc7469c of master branch)
This commit is contained in:
Alexander Barton 2009-01-04 15:22:32 +01:00
parent aede22901c
commit b00a08ef40

View File

@ -1027,9 +1027,9 @@ Delete_Channel( CHANNEL *Chan )
Log( LOG_DEBUG, "Freed channel structure for \"%s\".", Chan->name );
/* Invite- und Ban-Lists aufraeumen */
Lists_Free( &chan->list_bans );
Lists_Free( &chan->list_invites );
array_free(&chan->topic);
Lists_Free(&chan->list_bans);
Lists_Free(&chan->list_invites);
/* Neu verketten und freigeben */
if( last_chan ) last_chan->next = chan->next;