1
0
mirror of https://github.com/irssi/irssi.git synced 2024-07-21 03:14:16 -04:00

Merge pull request #1211 from ailin-nemui/disco_lastmsg

fix crash when server got disconnected/reconnected before it was properly connected
This commit is contained in:
ailin-nemui 2020-07-26 10:43:51 +02:00 committed by GitHub
commit cd10745711
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}