From 1e673368d1a6a376eb94bc14fe46368764d64355 Mon Sep 17 00:00:00 2001 From: Adrian Lees Date: Fri, 22 Apr 2005 00:58:05 +0000 Subject: [PATCH] [project @ 2005-04-22 00:58:05 by adrianl] No selection when searching on non-html content svn path=/import/netsurf/; revision=1677 --- riscos/search.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/riscos/search.c b/riscos/search.c index acb02f326..9317e0124 100644 --- a/riscos/search.c +++ b/riscos/search.c @@ -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;