aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-log-manager.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-03-06 19:53:23 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-03-06 19:53:23 +0800
commit060cedfbf61b6f0915dff38238c44a4673405b77 (patch)
tree205e46201f7aac2abc37ef74c3e284fa782482bc /libempathy/empathy-log-manager.c
parente3528df858ef8a297d5b7d4e3446e53e71403ec8 (diff)
downloadgsoc2013-empathy-060cedfbf61b6f0915dff38238c44a4673405b77.tar
gsoc2013-empathy-060cedfbf61b6f0915dff38238c44a4673405b77.tar.gz
gsoc2013-empathy-060cedfbf61b6f0915dff38238c44a4673405b77.tar.bz2
gsoc2013-empathy-060cedfbf61b6f0915dff38238c44a4673405b77.tar.lz
gsoc2013-empathy-060cedfbf61b6f0915dff38238c44a4673405b77.tar.xz
gsoc2013-empathy-060cedfbf61b6f0915dff38238c44a4673405b77.tar.zst
gsoc2013-empathy-060cedfbf61b6f0915dff38238c44a4673405b77.zip
Simplify finalize using g_list_foreachc
From: Xavier Claessens <xclaesse@gmail.com> svn path=/trunk/; revision=2616
Diffstat (limited to 'libempathy/empathy-log-manager.c')
-rw-r--r--libempathy/empathy-log-manager.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/libempathy/empathy-log-manager.c b/libempathy/empathy-log-manager.c
index 176d80e44..099573dcc 100644
--- a/libempathy/empathy-log-manager.c
+++ b/libempathy/empathy-log-manager.c
@@ -53,16 +53,10 @@ static void
log_manager_finalize (GObject *object)
{
EmpathyLogManagerPriv *priv;
- GList *l;
priv = GET_PRIV (object);
- for (l = priv->stores; l; l = g_list_next (l))
- {
- EmpathyLogStore *store = (EmpathyLogStore *) l->data;
- g_object_unref (store);
- }
-
+ g_list_foreach (priv->stores, (GFunc) g_object_unref, NULL);
g_list_free (priv->stores);
}