prefs-dialog: Fix GtkTreePath leaks
Leak report
40 (32 direct, 8 indirect) bytes in 2 blocks are definitely lost in loss record 7,809 of 15,226
at 0x48447A8: malloc (vg_replace_malloc.c:446)
by 0x5826721: g_malloc (gmem.c:100)
by 0x583E8DB: g_slice_alloc (gslice.c:193)
by 0x4CAC734: gtk_tree_path_new (gtktreemodel.c:606)
by 0x4CBC5A0: gtk_tree_store_get_path (gtktreestore.c:601)
by 0x4CAD91B: gtk_tree_model_get_path (gtktreemodel.c:1405)
by 0x10F6C4: tree_selection_previous (xfce4-screensaver-preferences.c:766)
by 0x10F6C4: fullscreen_preview_previous_cb (xfce4-screensaver-preferences.c:1549)
[...snip...]
40 (32 direct, 8 indirect) bytes in 2 blocks are definitely lost in loss record 7,810 of 15,226
at 0x48447A8: malloc (vg_replace_malloc.c:446)
by 0x5826721: g_malloc (gmem.c:100)
by 0x583E8DB: g_slice_alloc (gslice.c:193)
by 0x4CAC734: gtk_tree_path_new (gtktreemodel.c:606)
by 0x4CBC5A0: gtk_tree_store_get_path (gtktreestore.c:601)
by 0x4CAD91B: gtk_tree_model_get_path (gtktreemodel.c:1405)
by 0x10F659: tree_selection_next (xfce4-screensaver-preferences.c:782)
by 0x10F659: fullscreen_preview_next_cb (xfce4-screensaver-preferences.c:1560)
[...snip...]
Testing
- No issues were detected when testing the patch with Valgrind