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/gui/itip-utils.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'calendar/gui') 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