Uninitialize the mutex in SecretService
authorStef Walter <stefw@gnome.org>
Thu, 5 Jul 2012 13:40:23 +0000 (15:40 +0200)
committerStef Walter <stefw@gnome.org>
Thu, 5 Jul 2012 21:33:07 +0000 (23:33 +0200)
 * Fix resource leak

library/secret-service.c

index 27bd4b4..d0ecbbd 100644 (file)
@@ -205,6 +205,7 @@ secret_service_finalize (GObject *obj)
        if (self->pv->collections)
                g_hash_table_destroy (self->pv->collections);
        g_clear_object (&self->pv->cancellable);
+       g_mutex_clear (&self->pv->mutex);
 
        G_OBJECT_CLASS (secret_service_parent_class)->finalize (obj);
 }