diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-08-17 23:36:51 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-08-17 23:36:51 +0800 |
commit | ad9ed2451356457afaceddc7d0dc6b8b74a83bf6 (patch) | |
tree | 0133985b34f0c7002f651388cd771c9a468ba4af | |
parent | 665ec36c0690f5247e4803d7f5513097b2cf2bb4 (diff) | |
download | gsoc2013-empathy-ad9ed2451356457afaceddc7d0dc6b8b74a83bf6.tar gsoc2013-empathy-ad9ed2451356457afaceddc7d0dc6b8b74a83bf6.tar.gz gsoc2013-empathy-ad9ed2451356457afaceddc7d0dc6b8b74a83bf6.tar.bz2 gsoc2013-empathy-ad9ed2451356457afaceddc7d0dc6b8b74a83bf6.tar.lz gsoc2013-empathy-ad9ed2451356457afaceddc7d0dc6b8b74a83bf6.tar.xz gsoc2013-empathy-ad9ed2451356457afaceddc7d0dc6b8b74a83bf6.tar.zst gsoc2013-empathy-ad9ed2451356457afaceddc7d0dc6b8b74a83bf6.zip |
Plug some leaks
-rw-r--r-- | libempathy/empathy-account.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/libempathy/empathy-account.c b/libempathy/empathy-account.c index ffb6e6786..ae17f8d6a 100644 --- a/libempathy/empathy-account.c +++ b/libempathy/empathy-account.c @@ -234,8 +234,11 @@ empathy_account_update (EmpathyAccount *account, } if (g_hash_table_lookup (properties, "DisplayName") != NULL) - priv->display_name = - g_strdup (tp_asv_get_string (properties, "DisplayName")); + { + g_free (priv->display_name); + priv->display_name = + g_strdup (tp_asv_get_string (properties, "DisplayName")); + } if (g_hash_table_lookup (properties, "Enabled") != NULL) { @@ -257,6 +260,9 @@ empathy_account_update (EmpathyAccount *account, parameters = tp_asv_get_boxed (properties, "Parameters", TP_HASH_TYPE_STRING_VARIANT_MAP); + if (priv->parameters != NULL) + g_hash_table_unref (priv->parameters); + priv->parameters = g_boxed_copy (TP_HASH_TYPE_STRING_VARIANT_MAP, parameters); } |