summaryrefslogtreecommitdiff
path: root/desktop/browser.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/browser.c')
-rw-r--r--desktop/browser.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop/browser.c b/desktop/browser.c
index c75eb0137..a864a3601 100644
--- a/desktop/browser.c
+++ b/desktop/browser.c
@@ -1902,6 +1902,10 @@ void browser_window_destroy_internal(struct browser_window *bw)
}
}
+ /* Destroying a search context causes it to redraw any deselected,
+ * content areas, so do this first */
+ browser_window_search_destroy_context(bw);
+
/* Destruction order is important: we must ensure that the frontend
* destroys any window(s) associated with this browser window before
* we attempt any destructive cleanup.