diff options
-rw-r--r-- | plugins/save-calendar/ChangeLog | 4 | ||||
-rw-r--r-- | 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 <kmaraas@gnome.org> + + * rdf-format.c: (add_time_to_rdf): Plug a leak. + 2006-05-25 Srinivasa Ragavan <sragavan@novell.com> 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); } } |