glibrdf

GLib wrapper for the Redland RDF library
git clone https://code.djc.id.au/git/glibrdf/
commit 0660590bb6e708a567deb6613491eb93d37bb6ec
parent 1133e45ffaa725e2e7de1ec2032c349848871552
Author: Dan Callaghan <djc@djc.id.au>
Date:   Tue, 15 Jan 2013 21:02:17 +1000

fixed reference leaks in librdf_node_get_literal_gvalue (thanks valgrind!)

Diffstat:
Mglibrdf.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/glibrdf.c b/glibrdf.c
@@ -60,7 +60,7 @@ static void date(const gchar *lv, GValue *value_out) {
     GDate *date = parse_iso8601_date(lv);
     g_return_if_fail(date != NULL);
     g_value_init(value_out, G_TYPE_DATE);
-    g_value_set_boxed(value_out, date);
+    g_value_take_boxed(value_out, date);
     return;
 }
 
@@ -68,7 +68,7 @@ static void datetime(const gchar *lv, GValue *value_out) {
     GDateTime *datetime = parse_iso8601_datetime(lv);
     g_return_if_fail(datetime != NULL);
     g_value_init(value_out, G_TYPE_DATE_TIME);
-    g_value_set_boxed(value_out, datetime);
+    g_value_take_boxed(value_out, datetime);
     return;
 }