Initialize priv->db and priv->iid so that destroy() won't crash if

* e-shell.c (init): Initialize priv->db and priv->iid so that
	destroy() won't crash if e_shell_construct bails out before
	setting them. Reduces bug #4173 to #4169.

svn path=/trunk/; revision=11044
This commit is contained in:
Dan Winship
2001-07-12 16:36:19 +00:00
parent 91ab110ec6
commit 026065f2fd
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2001-07-12 Dan Winship <danw@ximian.com>
* e-shell.c (init): Initialize priv->db and priv->iid so that
destroy() won't crash if e_shell_construct bails out before
setting them. Reduces bug #4173 to #4169.
2001-07-11 Iain Holmes <iain@ximian.com>
* importers/intelligent.c (intelligent_importer_init): Sync the config

View File

@ -745,6 +745,7 @@ init (EShell *shell)
priv->views = NULL;
priv->iid = NULL;
priv->local_directory = NULL;
priv->storage_set = NULL;
priv->local_storage = NULL;
@ -757,6 +758,7 @@ init (EShell *shell)
priv->offline_handler = NULL;
priv->crash_type_names = NULL;
priv->line_status = E_SHELL_LINE_STATUS_ONLINE;
priv->db = CORBA_OBJECT_NIL;
shell->priv = priv;
}