[telepathy-mission-control/telepathy-mission-control-5.2] Use GSlice
Alberto Mardegan
alberto.mardegan at nokia.com
Tue Aug 11 01:18:16 PDT 2009
---
libmcclient/mc-account-compat.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libmcclient/mc-account-compat.c b/libmcclient/mc-account-compat.c
index e81d917..1db32aa 100644
--- a/libmcclient/mc-account-compat.c
+++ b/libmcclient/mc-account-compat.c
@@ -59,7 +59,7 @@ _mc_account_compat_props_free (McAccountCompatProps *props)
g_free (props->profile);
g_free (props->avatar_file);
g_strfreev ((gchar **)props->secondary_vcard_fields);
- g_free (props);
+ g_slice_free (McAccountCompatProps, props);
}
static void
@@ -94,7 +94,7 @@ create_props (TpProxy *proxy, GHashTable *props)
McAccount *account = MC_ACCOUNT (proxy);
McAccountPrivate *priv = account->priv;
- priv->compat_props = g_malloc0 (sizeof (McAccountCompatProps));
+ priv->compat_props = g_slice_new0 (McAccountCompatProps);
g_hash_table_foreach (props, update_property, account);
}
--
1.5.6.5
More information about the telepathy-commits
mailing list