[project @ 2005-04-22 00:58:05 by adrianl]

No selection when searching on non-html content

svn path=/import/netsurf/; revision=1677
This commit is contained in:
Adrian Lees 2005-04-22 00:58:05 +00:00
parent 8da644f442
commit 1e673368d1
1 changed files with 4 additions and 2 deletions

View File

@ -204,8 +204,10 @@ void end_search(void)
{
struct list_entry *a, *b;
selection_clear(search_selection, true);
selection_destroy(search_selection);
if (search_selection) {
selection_clear(search_selection, true);
selection_destroy(search_selection);
}
search_selection = 0;
search_current_window = 0;