diff options
author | Timo Sirainen <cras@irssi.org> | 2001-07-26 01:49:08 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-07-26 01:49:08 +0000 |
commit | 3fb7a4115d027b974c1fa85057604fa38e6c847f (patch) | |
tree | 35525eeb6ba268a3b681256af79d72427dcb7b15 /src/core/channels.c | |
parent | 219d276b0a5719a54a90916975f804093ceed962 (diff) | |
download | irssi-3fb7a4115d027b974c1fa85057604fa38e6c847f.zip |
added destroy() function to WI_ITEM_REC. This fixes a potential crash when
"window item destroy" signal was being used.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1655 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/channels.c')
-rw-r--r-- | src/core/channels.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/channels.c b/src/core/channels.c index f3d3a7a4..6a0a315e 100644 --- a/src/core/channels.c +++ b/src/core/channels.c @@ -48,6 +48,7 @@ void channel_init(CHANNEL_REC *channel, int automatic) MODULE_DATA_INIT(channel); channel->type = module_get_uniq_id_str("WINDOW ITEM TYPE", "CHANNEL"); + channel->destroy = (void (*) (WI_ITEM_REC *)) channel_destroy; channel->mode = g_strdup(""); channel->createtime = time(NULL); channel->get_join_data = get_join_data; |