[mutter] region-utils.c: Squash a memory leak
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] region-utils.c: Squash a memory leak
- Date: Wed, 11 May 2011 18:15:00 +0000 (UTC)
commit 65963748860aec8e3d7ee939b3b16876f4117904
Author: Colin Walters <walters verbum org>
Date: Thu May 5 16:11:02 2011 -0400
region-utils.c: Squash a memory leak
"chunk" was an allocated but unused variable.
https://bugzilla.gnome.org/show_bug.cgi?id=649504
src/compositor/region-utils.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/src/compositor/region-utils.c b/src/compositor/region-utils.c
index b4071ca..cf3c64e 100644
--- a/src/compositor/region-utils.c
+++ b/src/compositor/region-utils.c
@@ -248,7 +248,6 @@ expand_region_inverse (cairo_region_t *region,
MetaRegionBuilder builder;
MetaRegionIterator iter;
cairo_rectangle_int_t extents;
- cairo_region_t *chunk;
int last_x;
@@ -268,16 +267,11 @@ expand_region_inverse (cairo_region_t *region,
extents.x, extents.y + extents.height, extents.width, 1,
x_amount, y_amount, flip);
- chunk = NULL;
-
last_x = extents.x;
for (meta_region_iterator_init (&iter, region);
!meta_region_iterator_at_end (&iter);
meta_region_iterator_next (&iter))
{
- if (chunk == NULL)
- chunk = cairo_region_create ();
-
if (iter.rectangle.x > last_x)
add_expanded_rect (&builder,
last_x, iter.rectangle.y,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]