Fix GFileInfo leak in check_create_desktop_folder
Leak report
2,494 (40 direct, 2,454 indirect) bytes in 1 blocks are definitely lost in loss record 13,699 of 13,890
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 0x4B7C82D: g_object_new_with_properties (gobject.c:2769)
by 0x4B7D66E: g_object_new (gobject.c:2415)
by 0x48CBE72: g_file_info_new (gfileinfo.c:390)
by 0x498E929: _g_local_file_info_get (glocalfileinfo.c:1913)
by 0x49892B5: g_local_file_query_info (glocalfile.c:1249)
by 0x48BEA2D: g_file_query_info (gfile.c:1347)
by 0x150CEE: check_create_desktop_folder (xfdesktop-file-icon-model.c:490)
by 0x1511BE: xfdesktop_file_icon_model_reload (xfdesktop-file-icon-model.c:1150)
by 0x14D9D2: xfdesktop_file_icon_manager_constructed (xfdesktop-file-icon-manager.c:551)
[...snip...]
Testing
- No issues were detected with Valgrind when testing the patch