summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2017-09-22 08:37:50 (GMT)
committer Michael Drake <michael.drake@codethink.co.uk>2017-09-22 08:37:50 (GMT)
commit73adebf2632ca43cfbd3e18ac65e5887714b9280 (patch)
tree94d943a8822e75e40bb480ba4ee1d4dea3806ab1
parent798bfbf80f867f37920b9af7bee2ab680bf72b4a (diff)
downloadnetsurf-73adebf2632ca43cfbd3e18ac65e5887714b9280.tar.gz
netsurf-73adebf2632ca43cfbd3e18ac65e5887714b9280.tar.bz2
Treeview: Cancel any search when treeview is detatched from its corewindow.
-rw-r--r--desktop/treeview.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop/treeview.c b/desktop/treeview.c
index ca6cb4f..62e196e 100644
--- a/desktop/treeview.c
+++ b/desktop/treeview.c
@@ -2033,6 +2033,8 @@ nserror treeview_cw_detach(treeview *tree)
tree->cw_t = NULL;
tree->cw_h = NULL;
+ treeview__search_cancel(tree, true);
+
return NSERROR_OK;
}