]> saetta.ns0.it Git - libzakutils/commitdiff
Ref of GDateTime in ::ghashtable_get_gdatetime.
authorAndrea Zagli <azagli@libero.it>
Sat, 14 Jan 2017 08:40:19 +0000 (09:40 +0100)
committerAndrea Zagli <azagli@libero.it>
Sat, 14 Jan 2017 08:40:19 +0000 (09:40 +0100)
src/generic.c

index 5d9ebee866794cea44515545678731bce07d370d..662468a8aae72435d4a1ec2044bbd9ba3c35e321 100644 (file)
@@ -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
                                                {