diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2001-10-26 05:08:35 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2001-10-26 05:08:35 +0800 |
commit | 4f0f5db2c0d5fe5988406b25e35e3c86569a05de (patch) | |
tree | 2710f2e8ab23185e2351a790770644ef20419a5d /shell/e-activity-handler.c | |
parent | e5b46e5078c42926588f48f8189e91fbde47efbf (diff) | |
download | gsoc2013-evolution-4f0f5db2c0d5fe5988406b25e35e3c86569a05de.tar.gz gsoc2013-evolution-4f0f5db2c0d5fe5988406b25e35e3c86569a05de.tar.zst gsoc2013-evolution-4f0f5db2c0d5fe5988406b25e35e3c86569a05de.zip |
Set ->priv to NULL. (impl_operationStarted): Check for priv not being
* e-activity-handler.c (impl_destroy): Set ->priv to NULL.
(impl_operationStarted): Check for priv not being NULL.
(impl_operationProgressing): Likewise.
(impl_operationFinished): Likewise.
(impl_requestDialog): Likewise.
svn path=/trunk/; revision=14099
Diffstat (limited to 'shell/e-activity-handler.c')
-rw-r--r-- | shell/e-activity-handler.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/shell/e-activity-handler.c b/shell/e-activity-handler.c index 611d318378..960a02d19e 100644 --- a/shell/e-activity-handler.c +++ b/shell/e-activity-handler.c @@ -380,6 +380,7 @@ impl_destroy (GtkObject *object) } g_free (priv); + handler->priv = NULL; (* GTK_OBJECT_CLASS (parent_class)->destroy) (object); } @@ -407,7 +408,7 @@ impl_operationStarted (PortableServer_Servant servant, activity_handler = E_ACTIVITY_HANDLER (bonobo_object_from_servant (servant)); - if (GTK_OBJECT_DESTROYED (activity_handler)) + if (GTK_OBJECT_DESTROYED (activity_handler) || activity_handler->priv == NULL) return; priv = activity_handler->priv; @@ -457,7 +458,7 @@ impl_operationProgressing (PortableServer_Servant servant, activity_handler = E_ACTIVITY_HANDLER (bonobo_object_from_servant (servant)); - if (GTK_OBJECT_DESTROYED (activity_handler)) + if (GTK_OBJECT_DESTROYED (activity_handler) || activity_handler->priv == NULL) return; priv = activity_handler->priv; @@ -500,7 +501,7 @@ impl_operationFinished (PortableServer_Servant servant, activity_handler = E_ACTIVITY_HANDLER (bonobo_object_from_servant (servant)); - if (GTK_OBJECT_DESTROYED (activity_handler)) + if (GTK_OBJECT_DESTROYED (activity_handler) || activity_handler->priv == NULL) return; priv = activity_handler->priv; @@ -528,7 +529,7 @@ impl_requestDialog (PortableServer_Servant servant, activity_handler = E_ACTIVITY_HANDLER (bonobo_object_from_servant (servant)); - if (GTK_OBJECT_DESTROYED (activity_handler)) + if (GTK_OBJECT_DESTROYED (activity_handler) || activity_handler->priv == NULL) return GNOME_Evolution_Activity_DIALOG_ACTION_ERROR; /* FIXME implement. */ |