Ensure root bw and gui window before asking front end to remove caret.

svn path=/trunk/netsurf/; revision=12795
This commit is contained in:
Michael Drake 2011-09-15 15:06:20 +00:00
parent fe8a22007c
commit 50508a6e75
1 changed files with 2 additions and 1 deletions

View File

@ -102,6 +102,7 @@ void browser_window_remove_caret(struct browser_window *bw)
root_bw = browser_window_get_root(bw);
if (root_bw && root_bw->window)
gui_window_remove_caret(root_bw->window);
bw->caret_callback = NULL;