From fbbb865ed40f4342d62225543f25ffe23b3f35e4 Mon Sep 17 00:00:00 2001 From: C de-Avillez Date: Tue, 3 Nov 2009 15:03:39 +0100 Subject: Bug #599627 - Crash when adding a new task in a table --- calendar/gui/e-cal-model.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/calendar/gui/e-cal-model.c b/calendar/gui/e-cal-model.c index 33c209e1c5..b04e7b7245 100644 --- a/calendar/gui/e-cal-model.c +++ b/calendar/gui/e-cal-model.c @@ -1106,15 +1106,11 @@ ecm_append_row (ETableModel *etm, ETableModel *source, gint row) g_warning (G_STRLOC ": Could not create the object!"); /* FIXME: show error dialog */ - icalcomponent_free (comp_data->icalcomp); - g_object_unref (comp_data); - return; + } else { + g_signal_emit (G_OBJECT (model), signals[ROW_APPENDED], 0); } - icalcomponent_free (comp_data->icalcomp); g_object_unref (comp_data); - - g_signal_emit (G_OBJECT (model), signals[ROW_APPENDED], 0); } static gpointer -- cgit