[gnome-keyring] Free GkmSecretItem::schema in ::finalize()



commit 0c9c4a549e770e89e51d5f39995fdfc8c1af71ec
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Mon Sep 15 19:25:11 2014 +0200

    Free GkmSecretItem::schema in ::finalize()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=738508

 pkcs11/secret-store/gkm-secret-item.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/pkcs11/secret-store/gkm-secret-item.c b/pkcs11/secret-store/gkm-secret-item.c
index ca20d5a..fc210bc 100644
--- a/pkcs11/secret-store/gkm-secret-item.c
+++ b/pkcs11/secret-store/gkm-secret-item.c
@@ -391,6 +391,9 @@ gkm_secret_item_finalize (GObject *obj)
                g_hash_table_unref (self->fields);
        self->fields = NULL;
 
+       g_free (self->schema);
+       self->schema = NULL;
+
        G_OBJECT_CLASS (gkm_secret_item_parent_class)->finalize (obj);
 }
 


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