summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2013-04-11 21:26:42 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2013-04-11 21:26:42 +0100
commita6179250d5cfff0563c4b43e1052a4e747e3f761 (patch)
treecd3345408e05337e524049fc4e16848454850e33
parent26dbb7a60230c971e1681454c0008724331b1657 (diff)
downloadnetsurf-a6179250d5cfff0563c4b43e1052a4e747e3f761.tar.gz
netsurf-a6179250d5cfff0563c4b43e1052a4e747e3f761.tar.bz2
Remove scheduled redraws for destroyed windows
-rw-r--r--amiga/gui.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index 0e07be020..105d59f01 100644
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -3781,6 +3781,7 @@ void gui_window_destroy(struct gui_window *g)
}
ami_plot_release_pens(&g->shared->shared_pens);
+ ami_schedule_redraw_remove(g->shared);
DisposeObject(g->shared->objects[OID_MAIN]);
ami_gui_appicon_remove(g->shared);
@@ -3911,6 +3912,11 @@ void ami_schedule_redraw(struct gui_window_2 *gwin, bool full_redraw)
gwin->redraw_scheduled = true;
}
+static void ami_schedule_redraw_remove(struct gui_window_2 *gwin)
+{
+ schedule_remove(ami_redraw_callback, gwin);
+}
+
static void ami_do_redraw_tiled(struct gui_window_2 *gwin, bool busy,
int left, int top, int width, int height,
int sx, int sy, struct IBox *bbox, struct redraw_context *ctx)