summaryrefslogtreecommitdiff
path: root/json-glib/json-gobject.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@openedhand.com>2007-11-21 20:06:06 +0000
committerEmmanuele Bassi <ebassi@openedhand.com>2007-11-21 20:06:06 +0000
commitac699263493e09eeb203f9bf88c0a8296f9e4a8f (patch)
tree1aa30887dc79d7b7a1fd62c5edd7f54bca570447 /json-glib/json-gobject.c
parent0b6b09c0fe2fdd21b18593192e7213d1b0098f12 (diff)
downloadjson-glib-ac699263493e09eeb203f9bf88c0a8296f9e4a8f.tar.gz
Free the root node obtained using json_parser_get_root()
Update json_construct_gobject() to the change of behaviour in the root node getter function of JsonParser.
Diffstat (limited to 'json-glib/json-gobject.c')
-rw-r--r--json-glib/json-gobject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/json-glib/json-gobject.c b/json-glib/json-gobject.c
index fdb17e4..28d3dce 100644
--- a/json-glib/json-gobject.c
+++ b/json-glib/json-gobject.c
@@ -618,6 +618,8 @@ json_construct_gobject (GType gtype,
g_list_free (members);
+ json_node_free (root);
+
g_object_thaw_notify (retval);
g_type_class_unref (klass);