From 36f8398258647da05476678fcecc295aa8365404 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Tue, 25 Jun 2002 13:12:59 +0000 Subject: plug leak and actually use the minimal comp we create 2002-06-25 JP Rosevear * gui/itip-utils.c (comp_compliant): plug leak and actually use the minimal comp we create svn path=/trunk/; revision=17275 --- calendar/ChangeLog | 5 +++++ calendar/gui/itip-utils.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 794bd25a1d..576ef9774f 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2002-06-25 JP Rosevear + + * gui/itip-utils.c (comp_compliant): plug leak and actually use + the minimal comp we create + 2002-06-25 JP Rosevear * gui/dialogs/comp-editor-page.h: add back proto diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c index db070c8a4f..e90ff24c13 100644 --- a/calendar/gui/itip-utils.c +++ b/calendar/gui/itip-utils.c @@ -741,7 +741,11 @@ comp_compliant (CalComponentItipMethod method, CalComponent *comp) comp_sentby (clone); break; case CAL_COMPONENT_METHOD_REPLY: - comp_minimal (clone, TRUE); + /* Need to remove almost everything in case the user + made some other change */ + temp_clone = comp_minimal (clone, TRUE); + gtk_object_unref (GTK_OBJECT (clone)); + clone = temp_clone; break; case CAL_COMPONENT_METHOD_ADD: break; -- cgit v1.2.3