Fix leaks in xfdesktop_icon_view_constructed
Leak report
160 (48 direct, 112 indirect) bytes in 1 blocks are definitely lost in loss record 12,750 of 14,097
at 0x4B986A0: g_type_create_instance (gtype.c:1928)
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 0x4CAE29B: gtk_cell_renderer_pixbuf_new (gtkcellrendererpixbuf.c:456)
by 0x13E30E: xfdesktop_icon_view_constructed (xfdesktop-icon-view.c:1072)
[...snip...]
256 (104 direct, 152 indirect) bytes in 1 blocks are definitely lost in loss record 13,165 of 14,097
at 0x4B986A0: g_type_create_instance (gtype.c:1928)
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 0x137ED6: xfdesktop_cell_renderer_icon_label_new (xfdesktop-cell-renderer-icon-label.c:789)
by 0x13E318: xfdesktop_icon_view_constructed (xfdesktop-icon-view.c:1073)
[...snip...]
Testing
- No issues were detected when testing the patch with Valgrind