aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/save-calendar
diff options
context:
space:
mode:
authorKjartan Maraas <kmaraas@gnome.org>2006-08-17 14:47:17 +0800
committerKjartan Maraas <kmaraas@src.gnome.org>2006-08-17 14:47:17 +0800
commit8176e0119fc47c3ab22d395f59632c3ef6d019e4 (patch)
treebb907adfac44b6066422c622969e94dcfbde6258 /plugins/save-calendar
parentfe762762dfd73d4165c5812b58b53ca342afce60 (diff)
downloadgsoc2013-evolution-8176e0119fc47c3ab22d395f59632c3ef6d019e4.tar.gz
gsoc2013-evolution-8176e0119fc47c3ab22d395f59632c3ef6d019e4.tar.zst
gsoc2013-evolution-8176e0119fc47c3ab22d395f59632c3ef6d019e4.zip
Plug a leak.
2006-08-17 Kjartan Maraas <kmaraas@gnome.org> * rdf-format.c: (add_time_to_rdf): Plug a leak. svn path=/trunk/; revision=32557
Diffstat (limited to 'plugins/save-calendar')
-rw-r--r--plugins/save-calendar/ChangeLog4
-rw-r--r--plugins/save-calendar/rdf-format.c7
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);
}
}