mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-23 07:39:17 +02:00
gio: Fix GFileEnumerator leaks in gio tools
This commit is contained in:
parent
d23ca8c7db
commit
2dd1395e05
@ -157,6 +157,8 @@ list (GFile *file)
|
|||||||
res = FALSE;
|
res = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_object_unref (enumerator);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -204,6 +204,8 @@ trash_list (GFile *file,
|
|||||||
res = FALSE;
|
res = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_object_unref (enumerator);
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ do_tree (GFile *f, unsigned int level, guint64 pattern)
|
|||||||
info_list = g_list_prepend (info_list, info);
|
info_list = g_list_prepend (info_list, info);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
g_file_enumerator_close (enumerator, NULL, NULL);
|
g_object_unref (enumerator);
|
||||||
|
|
||||||
info_list = g_list_sort (info_list, (GCompareFunc) sort_info_by_name);
|
info_list = g_list_sort (info_list, (GCompareFunc) sort_info_by_name);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user