diff options
| author | Alexander Barton <alex@barton.de> | 2009-01-04 15:22:32 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2009-01-04 15:22:32 +0100 |
| commit | 18efc7469c5923a298a218ee2d17f518cff184fa (patch) | |
| tree | 3b5fdec56478722b3a3353595d697c4811e2401b /src | |
| parent | fd9266df78e32104af3fa72eb5528b5615a2030e (diff) | |
| download | ngircd-18efc7469c5923a298a218ee2d17f518cff184fa.tar.gz ngircd-18efc7469c5923a298a218ee2d17f518cff184fa.zip | |
Free topic array on channel deletion.
The topic array in the CHANNEL structure must be free()'d before the channel itself becomes deleted.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/channel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ngircd/channel.c b/src/ngircd/channel.c index 29b8becd..6958831a 100644 --- a/src/ngircd/channel.c +++ b/src/ngircd/channel.c @@ -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; |