ref: 8ee96dadb97afad79ce77eef6da94a67db6be62b
parent: cc7a430448e4fcee6a0ac6ad3acfd6d0aa08767a
author: Simon Howard <[email protected]>
date: Sun Oct 23 15:42:43 EDT 2011
Fix crash when closing a window. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2462
--- a/textscreen/txt_window.c
+++ b/textscreen/txt_window.c
@@ -95,6 +95,7 @@
int i;
TXT_EmitSignal(window, "closed");
+ TXT_RemoveDesktopWindow(window);
free(window->title);
@@ -111,8 +112,6 @@
// Destroy table and window
TXT_DestroyWidget(window);
-
- TXT_RemoveDesktopWindow(window);
}
static void CalcWindowPosition(txt_window_t *window)