1
0
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:
ailin-nemui 2018-01-05 22:13:23 +01:00
parent c9b3d87eb7
commit eb18904840

View File

@ -524,7 +524,12 @@ int server_unref(SERVER_REC *server)
return TRUE; return TRUE;
} }
/* 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); signal_emit("server destroyed", 1, server);
MODULE_DATA_DEINIT(server); MODULE_DATA_DEINIT(server);
server_connect_unref(server->connrec); server_connect_unref(server->connrec);
if (server->rawlog != NULL) rawlog_destroy(server->rawlog); if (server->rawlog != NULL) rawlog_destroy(server->rawlog);