[evolution-patches] patch for leak in calendar



The attached patch (for HEAD and 2.0.x) uncomments a couple of lines I
commented some time ago because of a crash I was having. This should
reduce a bit more the memory usage in e-d-s.
-- 
Rodrigo Moya <rodrigo novell com>
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/libical/ChangeLog,v
retrieving revision 1.167
diff -u -p -r1.167 ChangeLog
--- ChangeLog	26 Oct 2004 22:57:48 -0000	1.167
+++ ChangeLog	20 Dec 2004 12:47:56 -0000
@@ -1,3 +1,8 @@
+2004-12-20  Rodrigo Moya <rodrigo novell com>
+
+	* src/libical/icaltime.c (set_tz): uncomment free() call that was
+	commented because of a crash that does not happen anymore.
+
 2004-10-27  Julio M. Merino Vidal <jmmv menta net>
 
 	* configure.in: search for unsetenv.
Index: src/libical/icaltime.c
===================================================================
RCS file: /cvs/gnome/libical/src/libical/icaltime.c,v
retrieving revision 1.33
diff -u -p -r1.33 icaltime.c
--- src/libical/icaltime.c	26 Oct 2004 22:57:48 -0000	1.33
+++ src/libical/icaltime.c	20 Dec 2004 12:47:56 -0000
@@ -318,8 +318,8 @@ char* set_tz(const char* tzid)
     putenv(new_tz); 
 
     /* Free any previous TZ environment string we have used. */
-    //if (saved_tz)
-    //  free (saved_tz);
+    if (saved_tz)
+      free (saved_tz);
 
     /* Save a pointer to the TZ string we just set, so we can free it later. */
     saved_tz = new_tz;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]