From f3d04c6b2f0f698bb4bb3c6685aa4e98ec784f45 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 19 Mar 2009 13:08:20 +0000 Subject: [PATCH] Free invalid region rectangles. gdk_region_get_rectangles() allocates the array, so we need to free it afterwards. --- src/swfmoz_player.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/swfmoz_player.c b/src/swfmoz_player.c index f813748..a690420 100644 --- a/src/swfmoz_player.c +++ b/src/swfmoz_player.c @@ -229,6 +229,8 @@ swfmoz_player_idle_redraw (gpointer playerp) rect.bottom = rectangles[i].y + rectangles[i].height; plugin_invalidate_rect (player->instance, &rect); } + + g_free (rectangles); } else { swfmoz_player_render (player, NULL, region); } -- 1.6.0.4