After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 167516 - file_info leaked in icon lookup code
file_info leaked in icon lookup code
Status: RESOLVED DUPLICATE of bug 300803
Product: libgnomeui
Classification: Deprecated
Component: file-chooser
CVS HEAD
Other Linux
: Normal major
: future
Assigned To: Alexander Larsson
Alexander Larsson
Depends on:
Blocks:
 
 
Reported: 2005-02-15 20:24 UTC by Paolo Borelli
Modified: 2005-06-21 13:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Paolo Borelli 2005-02-15 20:24:49 UTC
valgrind --tool=memcheck --leak-check=yes --num-callers=10
--leak-resolution=high zenity --file-selection &> valg.dump


...
==3195== 112 bytes in 1 blocks are definitely lost in loss record 7243 of 7765
==3195==    at 0x1B905901: calloc (vg_replace_malloc.c:176)
==3195==    by 0x1BF2F05E: IA__g_malloc0 (gmem.c:154)
==3195==    by 0x1C54210F: gnome_vfs_file_info_new (gnome-vfs-file-info.c:65)
==3195==    by 0x1C4BC02B: get_vfs_info (gtkfilesystemgnomevfs.c:1383)
==3195==    by 0x1C4BC107: gtk_file_system_gnome_vfs_render_icon
(gtkfilesystemgnomevfs.c:1414)
==3195==    by 0x1BBBB637: IA__gtk_file_system_render_icon (gtkfilesystem.c:697)
==3195==    by 0x1BC280FD: get_button_image (gtkpathbar.c:951)
==3195==    by 0x1BC28371: gtk_path_bar_update_button_appearance (gtkpathbar.c:1046)
==3195==    by 0x1BC28681: make_directory_button (gtkpathbar.c:1166)
==3195==    by 0x1BC289ED: _gtk_path_bar_set_path (gtkpathbar.c:1297)
...
Comment 1 Federico Mena Quintero 2005-06-16 01:52:35 UTC
Paolo, do you still see this?  I think this is a duplicate of bug #147303 -
gtk_file_system_gnome_vfs_render_icon() was leaking a GnomeVFSFileInfo.
Comment 2 Paolo Borelli 2005-06-16 07:10:04 UTC
Nope, but I get quite a few of these:


==13791== 96 bytes in 6 blocks are definitely lost in loss record 9955 of 11164
==13791==    at 0x1B9059FF: realloc (vg_replace_malloc.c:197)
==13791==    by 0x1C5D6240: IA__g_realloc (gmem.c:170)
==13791==    by 0x1C5E9058: g_string_maybe_expand (gstring.c:260)
==13791==    by 0x1C5E9618: IA__g_string_insert_len (gstring.c:500)
==13791==    by 0x1C5E97F2: IA__g_string_append (gstring.c:526)
==13791==    by 0x1BB0780B: gnome_vfs_uri_to_string (gnome-vfs-uri.c:1207)
==13791==    by 0x1BB09302: gnome_vfs_make_uri_canonical_old (gnome-vfs-utils.c:685)
==13791==    by 0x1BB0AB3C: gnome_vfs_make_uri_canonical (gnome-vfs-utils.c:1806)
==13791==    by 0x1EE6C121: make_uri_canonical (gtkfilesystemgnomevfs.c:724)
==13791==    by 0x1EE6C195: gtk_file_system_gnome_vfs_get_folder
(gtkfilesystemgnomevfs.c:755)
==13791==    by 0x1C1B8D14: IA__gtk_file_system_get_folder (gtkfilesystem.c:327)
==13791==    by 0x1C23B6BC: _gtk_path_bar_set_path (gtkpathbar.c:1325)
==13791==    by 0x1C1AC129: gtk_file_chooser_default_set_current_folder
(gtkfilechooserdefault.c:4982)
==13791==    by 0x1C199C47: _gtk_file_chooser_set_current_folder_path
(gtkfilechooser.c:975)
==13791==    by 0x1C1A3C34: change_folder_and_display_error
(gtkfilechooserdefault.c:1011)
Comment 3 Federico Mena Quintero 2005-06-17 03:29:54 UTC
Paolo: is this with HEAD libgnomeui?
Comment 4 Paolo Borelli 2005-06-17 06:44:20 UTC
Yes, rebuilt this morning just to be sure.
Comment 5 Paolo Borelli 2005-06-21 13:29:24 UTC
Seems kmaaras is already on this. Marking as dup.

*** This bug has been marked as a duplicate of 300803 ***