1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

fix crash when server got disconnected/reconnected before it was properly connected

This commit is contained in:
Ailin Nemui 2020-07-23 00:42:54 +02:00
parent 40ed4122b1
commit 4e9dab4aeb

View File

@ -1195,6 +1195,9 @@ static void sig_server_disconnected(SERVER_REC *server)
g_return_if_fail(server != NULL);
mserver = MODULE_DATA(server);
if (mserver == NULL)
return;
while (mserver->lastmsgs)
last_msg_destroy(&mserver->lastmsgs, mserver->lastmsgs->data);
}