[couchdb-glib] Free also the uuid stored in CouchdbStructField object
- From: Rodrigo Moya <rodrigo src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [couchdb-glib] Free also the uuid stored in CouchdbStructField object
- Date: Fri, 12 Feb 2010 18:04:37 +0000 (UTC)
commit 6f8bb9af07f0dcb92db346d6de15919057b39f05
Author: Rodrigo Moya <rodrigo gnome-db org>
Date: Wed Feb 10 17:48:56 2010 +0100
Free also the uuid stored in CouchdbStructField object
couchdb-glib/couchdb-struct-field.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/couchdb-glib/couchdb-struct-field.c b/couchdb-glib/couchdb-struct-field.c
index 6b0ce3a..39c6239 100644
--- a/couchdb-glib/couchdb-struct-field.c
+++ b/couchdb-glib/couchdb-struct-field.c
@@ -159,6 +159,7 @@ couchdb_struct_field_unref (CouchdbStructField *sf)
if (old_ref > 1)
g_atomic_int_compare_and_exchange (&sf->ref_count, old_ref, old_ref - 1);
else {
+ g_free (sf->uuid);
json_object_unref (sf->json_object);
g_slice_free (CouchdbStructField, sf);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]