aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--embed/ephy-embed-shell.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c
index ab7341906..13e8fbef3 100644
--- a/embed/ephy-embed-shell.c
+++ b/embed/ephy-embed-shell.c
@@ -119,8 +119,7 @@ ephy_embed_shell_finalize (GObject *object)
if (priv->downloads != NULL) {
LOG ("Destroying downloads list");
- g_list_foreach (priv->downloads, (GFunc)g_object_unref, NULL);
- g_list_free (priv->downloads);
+ g_list_free_full (priv->downloads, (GDestroyNotify)g_object_unref);
priv->downloads = NULL;
}