Commit 154b6ffd authored by Nalin Dahyabhai's avatar Nalin Dahyabhai

set the IM context's client window to NULL before unreferencing it to

* src/vte.c(vte_terminal_unrealize): set the IM context's client window to NULL
	before unreferencing it to avoid crashes when preedit is active.
parent c6967c55
2003-04-29 nalin
* src/vte.c(vte_terminal_unrealize): set the IM context's client window
to NULL before unreferencing it to avoid crashes when preedit is active.
2003-04-29 nalin
* src/keymap.c: add keymaps for GDK_slash and GDK_question (#108299).
......
......@@ -10837,11 +10837,8 @@ vte_terminal_unrealize(GtkWidget *widget)
/* Shut down input methods. */
if (terminal->pvt->im_context != NULL) {
vte_terminal_im_reset(terminal);
#ifdef VTE_DEBUG
if (terminal->pvt->im_preedit_active) {
g_warning("Unrealizing while IM preedit not stopped.");
}
#endif
gtk_im_context_set_client_window(terminal->pvt->im_context,
NULL);
g_object_unref(G_OBJECT(terminal->pvt->im_context));
terminal->pvt->im_context = NULL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment