mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
fix crash in notifylist
This commit is contained in:
parent
c9b3d87eb7
commit
eb18904840
@ -524,7 +524,12 @@ int server_unref(SERVER_REC *server)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
signal_emit("server destroyed", 1, server);
|
||||
/* since module initialisation uses server connected, only let
|
||||
them know that the object got destroyed if the server was
|
||||
disconnected */
|
||||
if (server->disconnected)
|
||||
signal_emit("server destroyed", 1, server);
|
||||
|
||||
MODULE_DATA_DEINIT(server);
|
||||
server_connect_unref(server->connrec);
|
||||
if (server->rawlog != NULL) rawlog_destroy(server->rawlog);
|
||||
|
Loading…
Reference in New Issue
Block a user