Re: Would this leak be inside gtk?
- From: Edscott Wilson <edscott wilson garcia gmail com>
- To: gtk-app-devel-list gnome org
- Subject: Re: Would this leak be inside gtk?
- Date: Wed, 23 Jan 2013 10:41:54 -0600
I conclude this is a gtk memory leak. It occurs when calling
gtk_combo_box_new_with_entry(), Apparently, when the dialog that contains
the combo box is destroyed, the GList "visible_children" in file
gtkcombobox.c is not being cleansed of the pointer to the child widget,
entry. The leak does not occur if plain gtk_combo_box_new() is used
instead. Correct me if I'm wrong.
Here's a valgrind suppression entry:
{
libgtk:comboboxwithentry
Memcheck:Leak
fun:malloc
fun:g_malloc
fun:g_slice_alloc
fun:g_list_prepend
fun:gtk_combo_box_get_path_for_child
fun:gtk_widget_get_path
fun:reset_style_recurse
fun:gtk_widget_set_parent
fun:gtk_combo_box_add
fun:g_closure_invoke
}
2013/1/22 Edscott Wilson <edscott wilson garcia gmail com>
Would the following be a leak in the gtk library (which I should not worry
about), or a leak in my program ( http://xffm.org )?
==19528==
==19528== 24 bytes in 1 blocks are definitely lost in loss record 2,773 of
9,919
==19528== at 0x4C2AABB: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==19528== by 0x8993114: g_malloc (in /usr/lib64/libglib-2.0.so.0.3000.2)
==19528== by 0x89A8069: g_slice_alloc (in
/usr/lib64/libglib-2.0.so.0.3000.2)
==19528== by 0x8986F8D: g_list_prepend (in
/usr/lib64/libglib-2.0.so.0.3000.2)
==19528== by 0x5EF1E9A: gtk_combo_box_get_path_for_child (in
/usr/lib64/libgtk-3.so.0.200.4)
==19528== by 0x60AC65B: gtk_widget_get_path (in
/usr/lib64/libgtk-3.so.0.200.4)
==19528== by 0x60AC6F9: reset_style_recurse (in
/usr/lib64/libgtk-3.so.0.200.4)
==19528== by 0x60B8276: gtk_widget_set_parent (in
/usr/lib64/libgtk-3.so.0.200.4)
==19528== by 0x5EF1F83: gtk_combo_box_add (in
/usr/lib64/libgtk-3.so.0.200.4)
==19528== by 0x8300C63: g_closure_invoke (in
/usr/lib64/libgobject-2.0.so.0.3000.2)
==19528== by 0x83173A6: ??? (in /usr/lib64/libgobject-2.0.so.0.3000.2)
==19528== by 0x8318DE8: g_signal_emit_valist (in
/usr/lib64/libgobject-2.0.so.0.3000.2)
Gtk version: GTK+-3.2.4
Linux tauro 3.2.1-gentoo-r2 #3 SMP Tue Oct 16 09:47:16 CDT 2012 x86_64
Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz GenuineIntel GNU/Linux
Any clues will be kindly appreciated.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]