mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-20 13:36:36 +02:00
fix memory leaks
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user