[empathy] Plug some leaks



commit fe0dd31c143abf6fa1e9a0a9c14f92508617d218
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Sep 14 17:16:15 2009 +0200

    Plug some leaks

 libempathy/empathy-account-settings.c |    3 +++
 libempathy/empathy-contact.c          |    2 ++
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c
index bd62191..33029a9 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 aaa35d9..0a097bb 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;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]