mirror of
https://github.com/Tha14/toxic.git
synced 2024-12-23 20:03:25 +01:00
fix memory leaks
This commit is contained in:
parent
1b3c40b539
commit
94e936575e
@ -78,9 +78,11 @@ void kill_groupchat_window(ToxWindow *self)
|
||||
ChatContext *ctx = self->chatwin;
|
||||
|
||||
log_disable(ctx->log);
|
||||
line_info_cleanup(ctx->hst);
|
||||
delwin(ctx->linewin);
|
||||
del_window(self);
|
||||
free(ctx->log);
|
||||
free(ctx->hst);
|
||||
free(ctx);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user