diff options
author | Chenthill Palanisamy <pchenthill@novell.com> | 2004-12-02 21:14:21 +0800 |
---|---|---|
committer | Chenthill Palanisamy <pchen@src.gnome.org> | 2004-12-02 21:14:21 +0800 |
commit | 2f70359db9a97a8e3f13d0ee9970d93a139f839e (patch) | |
tree | ada1e1d9f6106339b1f852b911ccdaf14ecbf23f /calendar/gui/e-week-view.c | |
parent | e403b9e4391b3ee6d40d6806dbb880937d335658 (diff) | |
download | gsoc2013-evolution-2f70359db9a97a8e3f13d0ee9970d93a139f839e.tar.gz gsoc2013-evolution-2f70359db9a97a8e3f13d0ee9970d93a139f839e.tar.zst gsoc2013-evolution-2f70359db9a97a8e3f13d0ee9970d93a139f839e.zip |
Free the string day_view->last_edited_comp_string before changing
2004-12-02 Chenthill Palanisamy <pchenthill@novell.com>
* gui/e-day-view.c (e_day_view_finish_resize), (e_day_view_reshape_day_event)
(e_day_view_change_event_time): Free the string day_view->last_edited_comp_string
before changing assigning it another value.
* gui/e-week-view.c (e_week_view_change_event_time): Free the string
week_view->last_edited_comp_string for the same reason above.
svn path=/trunk/; revision=28042
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r-- | calendar/gui/e-week-view.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c index 644ec850c5..3844c1a041 100644 --- a/calendar/gui/e-week-view.c +++ b/calendar/gui/e-week-view.c @@ -3228,6 +3228,12 @@ e_week_view_change_event_time (EWeekView *week_view, time_t start_dt, time_t end e_cal_component_set_dtend (comp, &date); e_cal_component_commit_sequence (comp); + + if (week_view->last_edited_comp_string != NULL) { + g_free (week_view->last_edited_comp_string); + week_view->last_edited_comp_string = NULL; + } + week_view->last_edited_comp_string = e_cal_component_get_as_string (comp); |