aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2004-03-27 04:53:16 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-03-27 04:53:16 +0800
commit375d7a4cab817fe72e9caa71dbdeb573ab0a8d74 (patch)
tree627ac62306a0bea4a0f9eff6ce3bb418cdb4e9fd /calendar
parent54e9cf9b84060c405bcbf2ff4a835c702f6cf188 (diff)
downloadgsoc2013-evolution-375d7a4cab817fe72e9caa71dbdeb573ab0a8d74.tar
gsoc2013-evolution-375d7a4cab817fe72e9caa71dbdeb573ab0a8d74.tar.gz
gsoc2013-evolution-375d7a4cab817fe72e9caa71dbdeb573ab0a8d74.tar.bz2
gsoc2013-evolution-375d7a4cab817fe72e9caa71dbdeb573ab0a8d74.tar.lz
gsoc2013-evolution-375d7a4cab817fe72e9caa71dbdeb573ab0a8d74.tar.xz
gsoc2013-evolution-375d7a4cab817fe72e9caa71dbdeb573ab0a8d74.tar.zst
gsoc2013-evolution-375d7a4cab817fe72e9caa71dbdeb573ab0a8d74.zip
Fixes #53134
2004-03-26 JP Rosevear <jpr@ximian.com> Fixes #53134 * gui/e-cal-model.c (get_description): make sure to set the string to NULL so that if this component doesn't have a description we don't double free next time we are called svn path=/trunk/; revision=25204
Diffstat (limited to 'calendar')
-rw-r--r--calendar/ChangeLog8
-rw-r--r--calendar/gui/e-cal-model.c6
2 files changed, 12 insertions, 2 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 01e66f7883..5ad7c522b4 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,11 @@
+2004-03-26 JP Rosevear <jpr@ximian.com>
+
+ Fixes #53134
+
+ * gui/e-cal-model.c (get_description): make sure to set the string
+ to NULL so that if this component doesn't have a description we
+ don't double free next time we are called
+
2004-03-26 JP Rosevear <jpr@ximian.com>
* gui/migration.c (migrate_calendars): no need to explicitly add
diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c
index bf1792fd52..1e8acf3334 100644
--- a/calendar/gui/e-cal-model.c
+++ b/calendar/gui/e-cal-model.c
@@ -346,9 +346,11 @@ get_description (ECalModelComponent *comp_data)
icalproperty *prop;
static GString *str = NULL;
- if (str)
+ if (str) {
g_string_free (str, TRUE);
-
+ str = NULL;
+ }
+
prop = icalcomponent_get_first_property (comp_data->icalcomp, ICAL_DESCRIPTION_PROPERTY);
if (prop) {
str = g_string_new ("");