From d39fa33648c58e7ffe451b02bd8db76c77a8d511 Mon Sep 17 00:00:00 2001 From: Andrea Zagli Date: Sat, 14 Jan 2017 09:40:19 +0100 Subject: [PATCH] Ref of GDateTime in ::ghashtable_get_gdatetime. --- src/generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic.c b/src/generic.c index 5d9ebee..662468a 100644 --- a/src/generic.c +++ b/src/generic.c @@ -815,7 +815,7 @@ GDateTime { if (G_VALUE_HOLDS_POINTER (gv)) { - ret = (GDateTime *)g_value_get_pointer (gv); + ret = g_date_time_ref ((GDateTime *)g_value_get_pointer (gv)); } else { -- 2.49.0