1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-22 21:43:02 +01:00

fix memory leaks

This commit is contained in:
Jfreegman 2014-03-27 17:59:31 -04:00
parent 1b3c40b539
commit 94e936575e
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

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