GNOME Bugzilla – Bug 664447
Leaking 1 values.
Last modified: 2011-11-21 17:26:48 UTC
new Gnumeric select File->Print cancel quit aguelzow@kirkman:~/git/gnumeric$ jhbuild run gnumeric (gnumeric:7984): Gtk-WARNING **: /build/buildd/gtk+3.0-3.2.0/./gtk/gtkcontainer.c:939: container class `GtkScrolledWindow' has no child property named `top-attach' (gnumeric:7984): Gtk-WARNING **: /build/buildd/gtk+3.0-3.2.0/./gtk/gtkcontainer.c:939: container class `GtkScrolledWindow' has no child property named `top-attach' (gnumeric:7984): Gtk-WARNING **: /build/buildd/gtk+3.0-3.2.0/./gtk/gtkcontainer.c:939: container class `GtkScrolledWindow' has no child property named `top-attach' Leaking 1 values. aguelzow@kirkman:~/git/gnumeric$ Note that we get GTK warnings as well as 1 leaked value...
I'll have a look at that during the evening or tomorrow.
Not a gnumeric bug. Gedit presents the same issue.
The "Leaking 1 values." is probably a Gnumeric issue and I do not see it in 1.10.17. I agree that the rest if a GTK issue:
+ Trace 229085
Looks like the criticals are gone for me after un update, I still see the leak though.
In gnm_print_sheet we have: case GTK_PRINT_OPERATION_RESULT_CANCEL: /* printing_instance_delete (pi); Done in response to end-print signal */ break; but in the sequence above printing_instance_delete appears to never be called. Whoever wrote that code (likely I) was sure that canceling triggered the end-print signal. Perhaps that has changed in gtk?
Created attachment 201825 [details] [review] Proposed patch Is the leak already there with gtk+-3.0 or is it new with 3.2. We might have to check gtk+ version there.
I have fixed the leak. Assuming the WARNINGS are fixed in GTK: This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Leak plugged.
Review of attachment 201825 [details] [review]: We can also cancel a (large) print job after printing has commenced. In that case end-print will likely happen and so we cannot free the printing instance in both situations.
The warnings seem to be fixed: see #661328 and http://git.gnome.org/browse/gtk+/commit/gtk/gtkprintunixdialog.c?id=99266c4ceb188da9f365a9a1f6700fd7272041df