From 8176e0119fc47c3ab22d395f59632c3ef6d019e4 Mon Sep 17 00:00:00 2001 From: Kjartan Maraas Date: Thu, 17 Aug 2006 06:47:17 +0000 Subject: Plug a leak. 2006-08-17 Kjartan Maraas * rdf-format.c: (add_time_to_rdf): Plug a leak. svn path=/trunk/; revision=32557 --- plugins/save-calendar/ChangeLog | 4 ++++ plugins/save-calendar/rdf-format.c | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/plugins/save-calendar/ChangeLog b/plugins/save-calendar/ChangeLog index 3e551f391c..333bce30ae 100644 --- a/plugins/save-calendar/ChangeLog +++ b/plugins/save-calendar/ChangeLog @@ -1,3 +1,7 @@ +2006-08-17 Kjartan Maraas + + * rdf-format.c: (add_time_to_rdf): Plug a leak. + 2006-05-25 Srinivasa Ragavan diff --git a/plugins/save-calendar/rdf-format.c b/plugins/save-calendar/rdf-format.c index 34fbcd7a55..72df578fce 100644 --- a/plugins/save-calendar/rdf-format.c +++ b/plugins/save-calendar/rdf-format.c @@ -149,7 +149,7 @@ add_time_to_rdf (xmlNodePtr node, const gchar *tag, icaltimetype *time) struct tm mytm = icaltimetype_to_tm (time); gchar *str = (gchar*) g_malloc (sizeof (gchar) * 200); gchar *tmp = NULL; - + gchar *timezone; /* * Translator: the %FT%T is the thirth argument for a strftime function. * It lets you define the formatting of the date in the rdf-file. @@ -160,10 +160,11 @@ add_time_to_rdf (xmlNodePtr node, const gchar *tag, icaltimetype *time) cur_node = xmlNewChild (node, NULL, tag, str); /* Not sure about this property */ - tmp = g_strdup_printf ("http://www.w3.org/2002/12/cal/tzd/%s#tz", calendar_config_get_timezone ()); + timezone = calendar_config_get_timezone (); + tmp = g_strdup_printf ("http://www.w3.org/2002/12/cal/tzd/%s#tz", timezone); xmlSetProp (cur_node, "rdf:datatype", tmp); g_free (tmp); - + g_free (timezone); g_free (str); } } -- cgit v1.2.3