diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-09-15 15:06:20 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-09-15 15:06:20 +0000 |
commit | 50508a6e75e8bfa955b9193f0b6252ff2e235220 (patch) | |
tree | 89851e54d6ce378a46ac4aedf75c93f18613bada /desktop/textinput.c | |
parent | fe8a22007c41880f5c31f7aa6f2331bbf45e3e99 (diff) | |
download | netsurf-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
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; |