From e0f265af76c266149261582ede1ff9991576072a Mon Sep 17 00:00:00 2001 From: Harish Krishnaswamy Date: Mon, 17 Jan 2005 09:21:35 +0000 Subject: fixed a kludge. * gui/dialogs/cal-attachment-bar.c (destroy): fixed a kludge. svn path=/trunk/; revision=28418 --- calendar/ChangeLog | 5 +++++ calendar/gui/dialogs/cal-attachment-bar.c | 13 +++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) (limited to 'calendar') diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 818895517c..71f726ef74 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,8 @@ +2005-01-17 Harish Krishnaswamy + + * gui/dialogs/cal-attachment-bar.c (destroy): + fixed a kludge. + 2005-01-12 JP Rosevear Fixes #65820 diff --git a/calendar/gui/dialogs/cal-attachment-bar.c b/calendar/gui/dialogs/cal-attachment-bar.c index 2dea375a87..daca395904 100644 --- a/calendar/gui/dialogs/cal-attachment-bar.c +++ b/calendar/gui/dialogs/cal-attachment-bar.c @@ -534,17 +534,14 @@ destroy (GtkObject *object) if (bar->priv) { free_attachment_list (bar); + if (bar->priv->local_attachment_store) + g_free (bar->priv->local_attachment_store); + if (bar->priv->comp_uid) + g_free (bar->priv->comp_uid); g_free (bar->priv); bar->priv = NULL; } - - /* TODO leaking this here to prevent a crash */ - /* - if (bar->priv->local_attachment_store) - g_free (bar->priv->local_attachment_store); - if (bar->priv->comp_uid) - g_free (bar->priv->comp_uid); - */ + if (GTK_OBJECT_CLASS (parent_class)->destroy != NULL) (* GTK_OBJECT_CLASS (parent_class)->destroy) (object); } -- cgit v1.2.3