From: Andrea Zagli Date: Sat, 14 Jan 2017 08:40:19 +0000 (+0100) Subject: Ref of GDateTime in ::ghashtable_get_gdatetime. X-Git-Tag: v0.0.2~1^2~3 X-Git-Url: https://saetta.ns0.it/gitweb?a=commitdiff_plain;h=d39fa33648c58e7ffe451b02bd8db76c77a8d511;p=libzakutils Ref of GDateTime in ::ghashtable_get_gdatetime. --- 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 {