From 4839adaff307200236329b0c56dbc2b04e66edcb Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 3 Apr 2010 12:19:20 +0000 Subject: [PATCH] Don't leak bitmap svn path=/trunk/netsurf/; revision=10233 --- image/nssprite.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/image/nssprite.c b/image/nssprite.c index f24489114..06e5696a0 100644 --- a/image/nssprite.c +++ b/image/nssprite.c @@ -126,6 +126,8 @@ void nssprite_destroy(struct content *c) { if (c->data.nssprite.sprite_area != NULL) rosprite_destroy_sprite_area(c->data.nssprite.sprite_area); + if (c->bitmap != NULL) + bitmap_destroy(c->bitmap); }