From fe0dd31c143abf6fa1e9a0a9c14f92508617d218 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Mon, 14 Sep 2009 17:16:15 +0200 Subject: Plug some leaks --- libempathy/empathy-account-settings.c | 3 +++ libempathy/empathy-contact.c | 2 ++ 2 files changed, 5 insertions(+) (limited to 'libempathy') diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c index bd62191ad..33029a9d9 100644 --- a/libempathy/empathy-account-settings.c +++ b/libempathy/empathy-account-settings.c @@ -338,6 +338,9 @@ empathy_account_settings_finalize (GObject *object) g_free (priv->display_name); g_free (priv->icon_name); + if (priv->required_params != NULL) + g_array_free (priv->required_params, TRUE); + g_hash_table_destroy (priv->parameters); empathy_account_settings_free_unset_parameters (self); diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c index aaa35d9e9..0a097bb4d 100644 --- a/libempathy/empathy-contact.c +++ b/libempathy/empathy-contact.c @@ -953,6 +953,8 @@ empathy_contact_load_avatar_cache (EmpathyContact *contact, empathy_avatar_unref (avatar); } + g_free (filename); + return data != NULL; } -- cgit v1.2.3