[empathy/gnome-2-34] empathy_account_settings_check_readyness: don't leak a ref on manager



commit 6cf142d1a902e1799abe66a5813f2f3978025f6c
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Thu Feb 17 12:54:10 2011 +0100

    empathy_account_settings_check_readyness: don't leak a ref on manager

 libempathy/empathy-account-settings.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libempathy/empathy-account-settings.c b/libempathy/empathy-account-settings.c
index 12bde7b..e306181 100644
--- a/libempathy/empathy-account-settings.c
+++ b/libempathy/empathy-account-settings.c
@@ -533,7 +533,7 @@ empathy_account_settings_check_readyness (EmpathyAccountSettings *self)
 
   if (tp_protocol == NULL)
     {
-      priv->manager = NULL;
+      tp_clear_object (&priv->manager);
       return;
     }
 



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