[gnome-applets] trash: use g_list_free_full
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets] trash: use g_list_free_full
- Date: Fri, 3 Apr 2020 20:16:08 +0000 (UTC)
commit 9b130e1dd6f777df6ef0a60c5af8210a34fe412d
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Apr 3 23:09:14 2020 +0300
trash: use g_list_free_full
gnome-applets/trash/trash-applet.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gnome-applets/trash/trash-applet.c b/gnome-applets/trash/trash-applet.c
index 02efebeb4..d499da2d5 100644
--- a/gnome-applets/trash/trash-applet.c
+++ b/gnome-applets/trash/trash-applet.c
@@ -481,10 +481,8 @@ trash_applet_drag_data_received (GtkWidget *widget,
}
}
- g_list_foreach (untrashable, (GFunc)g_object_unref, NULL);
- g_list_free (untrashable);
- g_list_foreach (trashed, (GFunc)g_object_unref, NULL);
- g_list_free (trashed);
+ g_list_free_full (untrashable, g_object_unref);
+ g_list_free_full (trashed, g_object_unref);
g_strfreev (list);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]