[evolution-patches] Leak in the save calendar plugin
- From: Kjartan Maraas <kmaraas broadpark no>
- To: evolution-patches <evolution-patches gnome org>
- Subject: [evolution-patches] Leak in the save calendar plugin
- Date: Wed, 16 Aug 2006 16:08:00 +0200
Another leak of the same type as earlier.
Cheers
Kjartan
Index: save-calendar/rdf-format.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/save-calendar/rdf-format.c,v
retrieving revision 1.11
diff -u -p -r1.11 rdf-format.c
--- save-calendar/rdf-format.c 10 Jan 2006 08:12:18 -0000 1.11
+++ save-calendar/rdf-format.c 16 Aug 2006 14:07:35 -0000
@@ -149,7 +149,7 @@ add_time_to_rdf (xmlNodePtr node, const
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
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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]