diff options
Diffstat (limited to 'desktop/textinput.c')
-rw-r--r-- | desktop/textinput.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/textinput.c b/desktop/textinput.c index ba89f72a3..63e17debe 100644 --- a/desktop/textinput.c +++ b/desktop/textinput.c @@ -102,7 +102,8 @@ void browser_window_remove_caret(struct browser_window *bw) root_bw = browser_window_get_root(bw); - gui_window_remove_caret(root_bw->window); + if (root_bw && root_bw->window) + gui_window_remove_caret(root_bw->window); bw->caret_callback = NULL; bw->paste_callback = NULL; |