If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
gnome-perl | Glib | Ver: unspecified
Summary: gperl_callback_invoke() reference leak
GNOME version: Unspecified
GNOME milestone: Unspecified
With the current cvs and debian i386 perl 5.10.0, in the additions to GtkHBox.t
below the last test case fails.
The two new tests ask that a label widget is destroyed when weakened, after
it's been added to and removed from the box. The first test succeeds, but the
second test, where the label has also been subject to a $box->foreach, fails.
Some digging suggests gperl_callback_invoke() is incrementing the C-side
ref_count, ie. g_object_ref(), and never unreffing. I believe it may be due to
not having g_value_unset(), per change below.
I don't think anywhere in Glib-Perl itself puts objects through GPerlCallback,
to exercise the problem, hence a test case only for gtk. I noticed it with
GtkTreeModelFilter when calling out to a "modify" function, but
gtk_container_foreach() is a much simpler failing example.
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.
You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=574306.