summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2011-09-15 15:06:20 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2011-09-15 15:06:20 +0000
commit50508a6e75e8bfa955b9193f0b6252ff2e235220 (patch)
tree89851e54d6ce378a46ac4aedf75c93f18613bada
parentfe8a22007c41880f5c31f7aa6f2331bbf45e3e99 (diff)
downloadnetsurf-50508a6e75e8bfa955b9193f0b6252ff2e235220.tar.gz
netsurf-50508a6e75e8bfa955b9193f0b6252ff2e235220.tar.bz2
Ensure root bw and gui window before asking front end to remove caret.
svn path=/trunk/netsurf/; revision=12795
-rw-r--r--desktop/textinput.c3
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;