[libsecret] Free CollectionClosure::collection_path when it's freed



commit ec33acd46e42ca8c02b788bd1bd0c3377c58b8ee
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Sat Oct 17 23:14:31 2015 +0200

    Free CollectionClosure::collection_path when it's freed
    
    Similarly to what is done ItemClosure::collection_path, make sure that
    CollectionClosure::collection_path is freed in
    collection_closure_free().
    
    https://bugzilla.gnome.org/show_bug.cgi?id=756766

 libsecret/secret-paths.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libsecret/secret-paths.c b/libsecret/secret-paths.c
index 279a16d..5afca86 100644
--- a/libsecret/secret-paths.c
+++ b/libsecret/secret-paths.c
@@ -1660,6 +1660,7 @@ collection_closure_free (gpointer data)
        CollectionClosure *closure = data;
        g_clear_object (&closure->cancellable);
        g_clear_object (&closure->prompt);
+       g_free (closure->collection_path);
        g_slice_free (CollectionClosure, closure);
 }
 


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