empathy r2616 - trunk/libempathy
- From: xclaesse svn gnome org
- To: svn-commits-list gnome org
- Subject: empathy r2616 - trunk/libempathy
- Date: Fri, 6 Mar 2009 11:53:23 +0000 (UTC)
Author: xclaesse
Date: Fri Mar 6 11:53:23 2009
New Revision: 2616
URL: http://svn.gnome.org/viewvc/empathy?rev=2616&view=rev
Log:
Simplify finalize using g_list_foreachc
From: Xavier Claessens <xclaesse gmail com>
Modified:
trunk/libempathy/empathy-log-manager.c
Modified: trunk/libempathy/empathy-log-manager.c
==============================================================================
--- trunk/libempathy/empathy-log-manager.c (original)
+++ trunk/libempathy/empathy-log-manager.c Fri Mar 6 11:53:23 2009
@@ -53,16 +53,10 @@
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]