From: Kristian Høgsberg Date: Fri, 24 Jun 2011 01:11:19 +0000 (-0400) Subject: compositor: Fix a couple of region leaks X-Git-Tag: 0.85.0~425 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=53df1d8a6b47be8309459b1b7df3245ae101ff0f;p=profile%2Fivi%2Fweston.git compositor: Fix a couple of region leaks --- diff --git a/compositor/compositor.c b/compositor/compositor.c index 99b2946..8dd19bf 100644 --- a/compositor/compositor.c +++ b/compositor/compositor.c @@ -774,7 +774,6 @@ wlsc_output_repaint(struct wlsc_output *output) pixman_region32_subtract(&clip, &clip, ®ion); pixman_region32_fini(®ion); } - } pixman_region32_subtract(&ec->damage, &ec->damage, &output->region); @@ -783,6 +782,9 @@ wlsc_output_repaint(struct wlsc_output *output) &output->previous_damage); pixman_region32_copy(&output->previous_damage, &new_damage); + pixman_region32_fini(&clip); + pixman_region32_fini(&new_damage); + device = (struct wlsc_input_device *) ec->input_device; if (ec->focus && ec->fade.spring.current < 0.001) { if (!wl_list_empty(&device->sprite->link)) {