diff --git a/src/ui/window.c b/src/ui/window.c index 54f1b99f..1cdf2f26 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -336,7 +336,7 @@ win_free(ProfWin* window) ProfChatWin *chatwin = (ProfChatWin*)window; free(chatwin->barejid); free(chatwin->resource_override); - free(chatwin->state); + chat_state_free(chatwin->state); } if (window->type == WIN_MUC) {