diff options
Diffstat (limited to 'shell/e-task-widget.c')
-rw-r--r-- | shell/e-task-widget.c | 13 |
1 files changed, 8 insertions, 5 deletions
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); } |