mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 12:53:42 +02:00
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
This commit is contained in:
parent
1a80491f81
commit
0abb62a471
5 changed files with 14 additions and 6 deletions
|
|
@ -357,6 +357,7 @@ static void sig_disconnected(IRC_SERVER_REC *server)
|
|||
g_hash_table_foreach(server->splits,
|
||||
(GHFunc) netsplit_destroy_hash, server);
|
||||
g_hash_table_destroy(server->splits);
|
||||
server->splits = NULL;
|
||||
}
|
||||
|
||||
static int split_server_check(void *key, NETSPLIT_REC *rec,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue