Don't track windows after destruction.

svn path=/trunk/netsurf/; revision=2914
This commit is contained in:
Richard Wilson 2006-09-05 00:53:17 +00:00
parent 6d36d39a56
commit 5a9af92cd1
1 changed files with 6 additions and 0 deletions

View File

@ -385,6 +385,12 @@ void gui_window_destroy(struct gui_window *g)
assert(g);
/* stop any tracking */
if (gui_track_gui_window == g) {
gui_track_gui_window = NULL;
gui_current_drag_type = GUI_DRAG_NONE;
}
/* remove from list */
if (g->prev)
g->prev->next = g->next;