[epiphany] ephy-embed-shell: use g_list_free_full



commit 85da033343489a78d08cfcc9138f040960bfe4f6
Author: Xan Lopez <xan igalia com>
Date:   Sun Mar 24 11:07:14 2013 +0100

    ephy-embed-shell: use g_list_free_full

 embed/ephy-embed-shell.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c
index ab73419..13e8fbe 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;
   }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]