Re: Memory leaks in cairo bindings



Thanks for the report. I think what you are seeing was fixed with the
following commit:
https://git.gnome.org/browse/pygobject/commit/?id=bbfcebdfdc5


On Thu, Dec 18, 2014 at 9:13 AM, Barry Scott <barry scott onelan co uk> wrote:
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

_______________________________________________
python-hackers-list mailing list
python-hackers-list gnome org
https://mail.gnome.org/mailman/listinfo/python-hackers-list


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