GNOME Bugzilla – Bug 307426
leak in gtkcalendar.c
Last modified: 2005-06-13 07:57:31 UTC
Valgrind shows this: ==19189== 15392 (1248 direct, 14144 indirect) bytes in 26 blocks are definitely lost in loss record 140 of 166 ==19189== at 0x1B909222: malloc (vg_replace_malloc.c:130) ==19189== by 0x1BE0A1C6: cairo_create (cairo.c:109) ==19189== by 0x1B9353CE: gdk_cairo_create (gdkcairo.c:46) ==19189== by 0x1B9F95F7: calendar_paint_arrow (gtkcalendar.c:2190) ==19189== by 0x1B9F9819: gtk_calendar_expose (gtkcalendar.c:2231) ==19189== by 0x1BAB8644: _gtk_marshal_BOOLEAN__BOXED (gtkmarshalers.c:83) Seems the calendar code is forgetting to call cairo_destroy()
Created attachment 47675 [details] [review] possible solution
The patch is correct and fine to commit.
Commited.