aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs
diff options
context:
space:
mode:
authorHarish Krishnaswamy <kharish@src.gnome.org>2005-01-17 17:21:35 +0800
committerHarish Krishnaswamy <kharish@src.gnome.org>2005-01-17 17:21:35 +0800
commite0f265af76c266149261582ede1ff9991576072a (patch)
treeb4deaa774f62ee74e2bad1093bfa44e92ea13548 /calendar/gui/dialogs
parent5c440f07f1ef24cfa6013c57a8859f5636689ba8 (diff)
downloadgsoc2013-evolution-e0f265af76c266149261582ede1ff9991576072a.tar.gz
gsoc2013-evolution-e0f265af76c266149261582ede1ff9991576072a.tar.zst
gsoc2013-evolution-e0f265af76c266149261582ede1ff9991576072a.zip
fixed a kludge.
* gui/dialogs/cal-attachment-bar.c (destroy): fixed a kludge. svn path=/trunk/; revision=28418
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r--calendar/gui/dialogs/cal-attachment-bar.c13
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);
}