Index: components/html-editor/ChangeLog
===================================================================
--- components/html-editor/ChangeLog	(revision 8693)
+++ components/html-editor/ChangeLog	(working copy)
@@ -1,3 +1,10 @@
+2008-01-22  Bharath Acharya  <abharath@novell.com>
+
+	** Fix for bug #491210
+
+	* search.c: (search_dialog_response): The GtkHTMLSearchDialog was
+	being accessed after destroying it.
+
 2008-01-15  Dan Winship  <danw@gnome.org>
 
 	* Makefile.am (INCLUDES): remove unused $(SOUP_CFLAGS)
Index: components/html-editor/search.c
===================================================================
--- components/html-editor/search.c	(revision 8693)
+++ components/html-editor/search.c	(working copy)
@@ -93,9 +93,9 @@
 	case GTK_RESPONSE_DELETE_EVENT:
 	case GTK_RESPONSE_CLOSE:
 	case GTK_RESPONSE_CANCEL:
+		gtk_widget_grab_focus (GTK_WIDGET (d->cd->html));
 		d->cd->search_dialog = NULL;
 		gtk_html_search_dialog_destroy (d);
-		gtk_widget_grab_focus (GTK_WIDGET (d->cd->html));
 		break;
 	}
 }
