mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 05:53:02 +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;
|
ChatContext *ctx = self->chatwin;
|
||||||
|
|
||||||
log_disable(ctx->log);
|
log_disable(ctx->log);
|
||||||
|
line_info_cleanup(ctx->hst);
|
||||||
delwin(ctx->linewin);
|
delwin(ctx->linewin);
|
||||||
del_window(self);
|
del_window(self);
|
||||||
free(ctx->log);
|
free(ctx->log);
|
||||||
|
free(ctx->hst);
|
||||||
free(ctx);
|
free(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user