summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2010-04-23 19:21:46 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2010-04-23 19:23:52 +0100
commit367a986a2aea33ca7934e006cad1eda222912a89 (patch)
tree89d3e1307c7382d94f6c9a64df5a021bb5edcc7c
parenta7bf4d09d89e5883b69b6da434f1f42534a24278 (diff)
TpAccount: don't leak the parameters
-rw-r--r--telepathy-glib/account.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/telepathy-glib/account.c b/telepathy-glib/account.c
index cc64a5572..263de6355 100644
--- a/telepathy-glib/account.c
+++ b/telepathy-glib/account.c
@@ -866,6 +866,9 @@ _tp_account_finalize (GObject *object)
g_array_free (priv->actual_features, TRUE);
g_array_free (priv->missing_features, TRUE);
+ if (priv->parameters != NULL)
+ g_hash_table_unref (priv->parameters);
+
/* free any data held directly by the object here */
if (G_OBJECT_CLASS (tp_account_parent_class)->finalize != NULL)
G_OBJECT_CLASS (tp_account_parent_class)->finalize (object);