From 0d553dc97e58504f674d8c94d6ecea86c5d2c9cd Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Fri, 6 Jul 2001 18:24:02 +0000 Subject: Call autosave_manager_unregister before destroying the composer, so * e-msg-composer.c (do_exit): Call autosave_manager_unregister before destroying the composer, so gtkhtml-editor-control doesn't try to act on a destroyed GtkHTML widget. (destroy): Remove the autosave_manager_unregister from here. svn path=/trunk/; revision=10850 --- composer/e-msg-composer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'composer/e-msg-composer.c') diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index e5d710ceaa..262119faa1 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -1311,6 +1311,7 @@ do_exit (EMsgComposer *composer) exit_dialog_cb (button, composer); } else { + autosave_manager_unregister (am, composer); gtk_widget_destroy (GTK_WIDGET (composer)); } } @@ -1871,8 +1872,6 @@ destroy (GtkObject *object) composer = E_MSG_COMPOSER (object); - autosave_manager_unregister (am, composer); - CORBA_exception_init (&ev); if (composer->config_db) { -- cgit