From 8ee96dadb97afad79ce77eef6da94a67db6be62b Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 23 Oct 2011 19:42:43 +0000 Subject: Fix crash when closing a window. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2462 --- textscreen/txt_window.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'textscreen') diff --git a/textscreen/txt_window.c b/textscreen/txt_window.c index 62f3ac8a..d33dd75b 100644 --- a/textscreen/txt_window.c +++ b/textscreen/txt_window.c @@ -95,6 +95,7 @@ void TXT_CloseWindow(txt_window_t *window) int i; TXT_EmitSignal(window, "closed"); + TXT_RemoveDesktopWindow(window); free(window->title); @@ -111,8 +112,6 @@ void TXT_CloseWindow(txt_window_t *window) // Destroy table and window TXT_DestroyWidget(window); - - TXT_RemoveDesktopWindow(window); } static void CalcWindowPosition(txt_window_t *window) -- cgit v1.2.3