Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/vte/ChangeLog,v
retrieving revision 1.529
diff -u -r1.529 ChangeLog
--- ChangeLog	6 Oct 2004 18:59:46 -0000	1.529
+++ ChangeLog	19 Oct 2004 09:31:29 -0000
@@ -1,3 +1,8 @@
+2004-10-19  Yukihiro Nakai  <nakai@gnome.gr.jp>
+
+	* src/vte.c (vte_terminal_unrealize): Delay _vte_draw_free()
+	for bug #134800
+
 2004-08-18  David Lodge <dave@cirt.net>
 
 	* configure.in: Added "ang" to ALL_LINGUAS.
Index: src/vte.c
===================================================================
RCS file: /cvs/gnome/vte/src/vte.c,v
retrieving revision 1.404
diff -u -r1.404 vte.c
--- src/vte.c	2 May 2004 06:43:01 -0000	1.404
+++ src/vte.c	19 Oct 2004 09:31:29 -0000
@@ -11664,12 +11664,6 @@
 	g_return_if_fail(VTE_IS_TERMINAL(widget));
 	terminal = VTE_TERMINAL(widget);
 
-	/* Clean up our draw structure. */
-	if (terminal->pvt->draw != NULL) {
-		_vte_draw_free(terminal->pvt->draw);
-	}
-	terminal->pvt->draw = NULL;
-
 	/* Disconnect from background-change events. */
 	g_signal_handlers_disconnect_by_func(G_OBJECT(vte_bg_get()),
 					     root_pixmap_changed_cb,
@@ -11702,6 +11696,12 @@
 		terminal->pvt->im_preedit_attrs = NULL;
 	}
 	terminal->pvt->im_preedit_cursor = 0;
+
+	/* Clean up our draw structure. */
+	if (terminal->pvt->draw != NULL) {
+		_vte_draw_free(terminal->pvt->draw);
+	}
+	terminal->pvt->draw = NULL;
 
 	/* Unmap the widget if it hasn't been already. */
 	if (GTK_WIDGET_MAPPED(widget)) {
