summaryrefslogtreecommitdiff
path: root/src/irc/core/channels-query.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-11-18 10:55:14 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-11-18 10:55:14 +0000
commit0abb62a4719dac1e59f5ecf97540c3bb24af9bb2 (patch)
treeed41c0965cf40eb7dcefa0432670cd114ef05d59 /src/irc/core/channels-query.c
parent1a80491f818468008a376e5cb7097875181cadb8 (diff)
downloadirssi-0abb62a4719dac1e59f5ecf97540c3bb24af9bb2.zip
When destroying data used from server in "server disconnected" signal, set
the data to NULL as well, the server record is still used after the signal is finished (the channels it uses are destroyed, which may trigger scripts etc.) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2046 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc/core/channels-query.c')
-rw-r--r--src/irc/core/channels-query.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/irc/core/channels-query.c b/src/irc/core/channels-query.c
index 42d98f84..aa4130ed 100644
--- a/src/irc/core/channels-query.c
+++ b/src/irc/core/channels-query.c
@@ -97,6 +97,8 @@ static void sig_disconnected(IRC_SERVER_REC *server)
g_slist_free(rec->queries[n]);
g_slist_free(rec->current_queries);
g_free(rec);
+
+ server->chanqueries = NULL;
}
/* Add channel to query list */