diff options
author | Timo Sirainen <cras@irssi.org> | 2002-02-07 19:17:36 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-02-07 19:17:36 +0000 |
commit | 0141801e2d194be6ccaad743cca573837ef536d7 (patch) | |
tree | ef4807a88dc35c6401c7db27b105a26ebb70159f /src/core/channels.c | |
parent | dbb279a1fe38d41e8af1497e2ff83d8092462efe (diff) | |
download | irssi-0141801e2d194be6ccaad743cca573837ef536d7.zip |
Set objects ->type = 0 when freeing to make sure we notice immediately if
they're being used after freed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2399 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/channels.c')
-rw-r--r-- | src/core/channels.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/channels.c b/src/core/channels.c index f3c9f215..57288f7e 100644 --- a/src/core/channels.c +++ b/src/core/channels.c @@ -75,6 +75,8 @@ void channel_destroy(CHANNEL_REC *channel) g_free_not_null(channel->key); g_free(channel->mode); g_free(channel->name); + + channel->type = 0; g_free(channel); } |