[gtk+] gdkwindow: Don't leak the surface in gdk_cairo_create()



commit de071768ae11e6f68d8f2375fd87858064ada538
Author: Colomban Wendling <ban herbesfolles org>
Date:   Tue Jun 24 03:37:59 2014 +0200

    gdkwindow: Don't leak the surface in gdk_cairo_create()

 gdk/gdkwindow.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 4e4ec98..68a75df 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -3058,6 +3058,8 @@ gdk_cairo_create (GdkWindow *window)
   cairo_region_destroy (region);
   cairo_clip (cr);
 
+  cairo_surface_destroy (surface);
+
   return cr;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]