[empathy: 63/65] Don't leak certificate data



commit 76d38803e7992e50333c1054c48bb789ff63c699
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Aug 24 11:54:17 2010 +0200

    Don't leak certificate data

 libempathy/empathy-tls-certificate.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libempathy/empathy-tls-certificate.c b/libempathy/empathy-tls-certificate.c
index 9b8e5ae..00ff4d5 100644
--- a/libempathy/empathy-tls-certificate.c
+++ b/libempathy/empathy-tls-certificate.c
@@ -148,7 +148,8 @@ empathy_tls_certificate_finalize (GObject *object)
 
   DEBUG ("%p", object);
 
-  g_free (priv->object_path);
+  g_free (priv->cert_type);
+  tp_clear_boxed (array_of_ay_get_type (), &priv->cert_data);
 
   G_OBJECT_CLASS (empathy_tls_certificate_parent_class)->finalize (object);
 }



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