mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 00:22:17 +02:00
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
This commit is contained in:
parent
dbb279a1fe
commit
0141801e2d
3 changed files with 9 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue