Skip to content

Fix GIcon leak in xfdesktop_icon_view_manager_sort_icons

correctmost requested to merge correctmost/xfdesktop:cm/fix-icon-leak into master

Leak report

145 (48 direct, 97 indirect) bytes in 1 blocks are definitely lost in loss record 14,607 of 16,364
   at 0x484BC13: calloc (vg_replace_malloc.c:1675)
   by 0x4A846B5: g_malloc0 (gmem.c:133)
   by 0x4B98421: g_type_create_instance (gtype.c:1933)
   by 0x4B7AF87: g_object_new_internal (gobject.c:2606)
   by 0x4B7CE9C: g_object_new_valist (gobject.c:2945)
   by 0x4B7D64B: g_object_new (gobject.c:2418)
   by 0x490C642: g_themed_icon_new (gthemedicon.c:369)
   by 0x143971: xfdesktop_icon_view_manager_sort_icons (xfdesktop-icon-view-manager.c:498)
   by 0x149512: xfdesktop_file_icon_menu_arrange_icons (xfdesktop-file-icon-manager.c:921)
[...snip...]

Testing

  • No issues were detected when testing the patch with Valgrind

Merge request reports

Loading