summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--riscos/gif.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/riscos/gif.c b/riscos/gif.c
index ddd0856e0..b559268f8 100644
--- a/riscos/gif.c
+++ b/riscos/gif.c
@@ -405,9 +405,11 @@ void nsgif_redraw(struct content *c, long x, long y,
-void nsgif_destroy(struct content *c) {
+void nsgif_destroy(struct content *c)
+{
/* Free all the associated memory buffers
*/
+ schedule_remove(nsgif_animate, c);
xfree(c->title);
xfree(c->data.gif.sprite_area);
xfree(c->data.gif.buffer_header);