[gtk+/gtk-3-10] Do not leak cairo_region
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-10] Do not leak cairo_region
- Date: Sun, 6 Apr 2014 03:42:02 +0000 (UTC)
commit 16a197c311a2184e6044c4ac7fef1ead187b73a2
Author: Paolo Borelli <pborelli gnome org>
Date: Fri Feb 21 21:07:11 2014 +0100
Do not leak cairo_region
gdk/gdkwindow.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 65ee69c..9407bb0 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -6418,6 +6418,8 @@ do_child_shapes (GdkWindow *window,
cairo_region_xor_rectangle (region, &r);
gdk_window_shape_combine_region (window, region, 0, 0);
+
+ cairo_region_destroy (region);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]