aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2013-03-24 18:07:14 +0800
committerXan Lopez <xan@igalia.com>2013-03-24 18:07:14 +0800
commit85da033343489a78d08cfcc9138f040960bfe4f6 (patch)
treebc520ce1d32c3bd1c135fe3c33629a61a3b4abff
parenta06498057762d695d044584d76fb388650a10e12 (diff)
downloadgsoc2013-epiphany-85da033343489a78d08cfcc9138f040960bfe4f6.tar
gsoc2013-epiphany-85da033343489a78d08cfcc9138f040960bfe4f6.tar.gz
gsoc2013-epiphany-85da033343489a78d08cfcc9138f040960bfe4f6.tar.bz2
gsoc2013-epiphany-85da033343489a78d08cfcc9138f040960bfe4f6.tar.lz
gsoc2013-epiphany-85da033343489a78d08cfcc9138f040960bfe4f6.tar.xz
gsoc2013-epiphany-85da033343489a78d08cfcc9138f040960bfe4f6.tar.zst
gsoc2013-epiphany-85da033343489a78d08cfcc9138f040960bfe4f6.zip
ephy-embed-shell: use g_list_free_full
-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;
}