[seahorse] pkcs11: Unreference partner private key correctly



commit e9c6cc2e760ca6d67ee7d7b75484f2826f7d27bf
Author: Stef Walter <stefw gnome org>
Date:   Fri Nov 9 11:46:51 2012 +0100

    pkcs11: Unreference partner private key correctly
    
     * Fixes a critical and crash on seahorse exit
    
    https://bugzilla.gnome.org/show_bug.cgi?id=687972

 pkcs11/seahorse-certificate.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pkcs11/seahorse-certificate.c b/pkcs11/seahorse-certificate.c
index b7fca71..f7b8645 100644
--- a/pkcs11/seahorse-certificate.c
+++ b/pkcs11/seahorse-certificate.c
@@ -139,7 +139,7 @@ seahorse_certificate_dispose (GObject *obj)
 {
 	SeahorseCertificate *self = SEAHORSE_CERTIFICATE (obj);
 
-	g_clear_object (&self->pv->private_key);
+	seahorse_certificate_set_partner (self, NULL);
 
 	G_OBJECT_CLASS (seahorse_certificate_parent_class)->dispose (obj);
 }



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