Re: Memory leaks in cairo bindings



This patch seems to fix the cairo_t leak.

--- pygobject-3.10.2/gi/pygi-foreign-cairo.c~   2014-12-18 16:56:02.351351606 
+0000
+++ pygobject-3.10.2/gi/pygi-foreign-cairo.c    2014-12-18 16:56:02.351351606 
+0000
@@ -60,8 +60,6 @@
 {
     cairo_t *context = (cairo_t*) data;
 
-    cairo_reference (context);
-
     return PycairoContext_FromContext (context, &PycairoContext_Type, NULL);
 }

Please review and I'll post into the bug tracker.

Barry



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