From 94c61bbfadcc832956c77837d2d1524482484715 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Fri, 8 Nov 2002 07:14:50 +0000 Subject: guard against multiple calls. fixes a crash whenever a task finishes (the 2002-11-07 Chris Toshok * e-task-widget.c (impl_destroy): guard against multiple calls. fixes a crash whenever a task finishes (the addressbook finishing loading, etc.). * e-shell-marshal.list: add NONE:BOOL for evolution-shell-component. * evolution-shell-component.c (class_init): register the signals with g_signal_new. svn path=/trunk/; revision=18661 --- shell/e-task-widget.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'shell/e-task-widget.c') diff --git a/shell/e-task-widget.c b/shell/e-task-widget.c index a6d7e773c6..ce936a5b10 100644 --- a/shell/e-task-widget.c +++ b/shell/e-task-widget.c @@ -62,15 +62,18 @@ impl_destroy (GtkObject *object) ETaskWidgetPrivate *priv; task_widget = E_TASK_WIDGET (object); - priv = task_widget->priv; + if (task_widget->priv) { + priv = task_widget->priv; - g_free (priv->component_id); + g_free (priv->component_id); - g_object_unref (priv->tooltips); + g_object_unref (priv->tooltips); - gdk_pixbuf_unref (priv->icon_pixbuf); + gdk_pixbuf_unref (priv->icon_pixbuf); - g_free (priv); + g_free (priv); + task_widget->priv = NULL; + } (* GTK_OBJECT_CLASS (parent_class)->destroy) (object); } -- cgit v1.2.3