diff options
author | Alexander Larsson <alexl@redhat.com> | 2012-09-03 10:13:09 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2012-09-03 10:13:35 +0200 |
commit | f256301a3eadb37419d6f957fbb4800c54a817da (patch) | |
tree | 7465641e60d9a22c2a0f1d3c8303215b3c995600 | |
parent | aea6f66b7b0530d579b5665777b84d703befef7a (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.c | 2 |
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 |