[client] message: free any pending messages on deinit

This commit is contained in:
Geoffrey McRae 2025-04-04 10:12:49 +11:00
parent d8baa62c6a
commit c2a19f5e76

View File

@ -64,6 +64,9 @@ void lgMessage_deinit(void)
{ {
if (this.list) if (this.list)
{ {
void * tmp;
while(ll_shift(this.list, &tmp))
free(tmp);
ll_free(this.list); ll_free(this.list);
this.list = NULL; this.list = NULL;
} }