From 5a9af92cd14e016c7bcadd9c2e8d9075c637f833 Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Tue, 5 Sep 2006 00:53:17 +0000 Subject: [PATCH] Don't track windows after destruction. svn path=/trunk/netsurf/; revision=2914 --- riscos/window.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/riscos/window.c b/riscos/window.c index c953afd95..25ec359e8 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -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;