summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2012-09-03 10:13:09 +0200
committerAlexander Larsson <alexl@redhat.com>2012-09-03 10:13:35 +0200
commitf256301a3eadb37419d6f957fbb4800c54a817da (patch)
tree7465641e60d9a22c2a0f1d3c8303215b3c995600
parentaea6f66b7b0530d579b5665777b84d703befef7a (diff)
Fix region leak in gtk2 compat defines0.13.29
https://bugs.freedesktop.org/show_bug.cgi?id=54277
-rw-r--r--gtk/spice-widget-cairo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/spice-widget-cairo.c b/gtk/spice-widget-cairo.c
index 8f424cb..9ddbe51 100644
--- a/gtk/spice-widget-cairo.c
+++ b/gtk/spice-widget-cairo.c
@@ -78,7 +78,7 @@ void spicex_image_destroy(SpiceDisplay *display)
#define cairo_rectangle_int_t GdkRectangle
#define cairo_region_t GdkRegion
#define cairo_region_create_rectangle gdk_region_rectangle
-#define cairo_region_subtract_rectangle(_dest,_rect) { GdkRegion *_region = gdk_region_rectangle (_rect); gdk_region_subtract (_dest, _region); }
+#define cairo_region_subtract_rectangle(_dest,_rect) { GdkRegion *_region = gdk_region_rectangle (_rect); gdk_region_subtract (_dest, _region); gdk_region_destroy (_region); }
#define cairo_region_destroy gdk_region_destroy
#endif