From ab25e491231e77fe0dde128e2741cf781c6c5b8d Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Tue, 11 Mar 2014 22:34:51 +0100 Subject: Grab a ref on the passed in date time too --- libplanfahr/providers/hafas-bin6.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libplanfahr/providers') diff --git a/libplanfahr/providers/hafas-bin6.c b/libplanfahr/providers/hafas-bin6.c index 33edc4e..909c0a8 100644 --- a/libplanfahr/providers/hafas-bin6.c +++ b/libplanfahr/providers/hafas-bin6.c @@ -666,6 +666,7 @@ lpf_provider_hafas_bin6_get_trips (LpfProvider *self, g_object_ref (start); g_object_ref (end); + g_date_time_ref (date); trips_data = g_try_malloc(sizeof(LpfProviderHafasBin6Private)); if (!trips_data) @@ -710,6 +711,7 @@ lpf_provider_hafas_bin6_get_trips (LpfProvider *self, g_free (timestr); g_object_unref (start); g_object_unref (end); + g_date_time_unref (date); if (ret < 0) g_free (trips_data); return ret; -- cgit v1.2.3