diff options
Diffstat (limited to 'libempathy')
-rw-r--r-- | libempathy/empathy-log-manager.c | 8 |
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); } |