[client] message: free any pending messages on deinit
This commit is contained in:
1 parent
d8baa62c6a
commit
c2a19f5e76
1 file changed
+3
@@ -64,6 +64,9 @@ void lgMessage_deinit(void)
|
||||
{
|
||||
if (this.list)
|
||||
{
|
||||
void * tmp;
|
||||
while(ll_shift(this.list, &tmp))
|
||||
free(tmp);
|
||||
ll_free(this.list);
|
||||
this.list = NULL;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user