summaryrefslogtreecommitdiff
path: root/trashapplet/src
diff options
context:
space:
mode:
Diffstat (limited to 'trashapplet/src')
-rw-r--r--trashapplet/src/trashapplet.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/trashapplet/src/trashapplet.c b/trashapplet/src/trashapplet.c
index 4d99f576..b2fc95f0 100644
--- a/trashapplet/src/trashapplet.c
+++ b/trashapplet/src/trashapplet.c
@@ -588,10 +588,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);