diff options
Diffstat (limited to 'calendar/gui/dialogs/cal-attachment-bar.c')
-rw-r--r-- | calendar/gui/dialogs/cal-attachment-bar.c | 13 |
1 files changed, 5 insertions, 8 deletions
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); } |