diff options
author | Guido Günther <agx@sigxcpu.org> | 2014-03-11 22:34:51 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2014-03-11 22:35:04 +0100 |
commit | ab25e491231e77fe0dde128e2741cf781c6c5b8d (patch) | |
tree | d61d5901c7e35f277f548d3321980de0fba0d9bb /libplanfahr | |
parent | 131b39e522e7b2bcefdf902622701d4ed681df15 (diff) |
Grab a ref on the passed in date time too
Diffstat (limited to 'libplanfahr')
-rw-r--r-- | libplanfahr/providers/hafas-bin6.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |