changeset 7754:f75991b27e94

[gaim-migrate @ 8399] Fix a crash when performing 2 unsuccessful searches on a conversation without having performed a correct one. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 05 Dec 2003 02:10:33 +0000
parents f1fda2e85015
children 8ebd9038ef62
files src/gtkimhtml.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkimhtml.c	Fri Dec 05 02:00:39 2003 +0000
+++ b/src/gtkimhtml.c	Fri Dec 05 02:10:33 2003 +0000
@@ -1919,11 +1919,10 @@
 
 	g_return_val_if_fail(imhtml != NULL, FALSE);
 	g_return_val_if_fail(text != NULL, FALSE);
-	
+
 	if (imhtml->search_string && !strcmp(text, imhtml->search_string))
 		new_search = FALSE;
-	 
-	
+
 	if (new_search) {
 		gtk_imhtml_search_clear(imhtml);
 		gtk_text_buffer_get_start_iter(imhtml->text_buffer, &iter);
@@ -1950,6 +1949,9 @@
 		}
 		return TRUE;
 	}
+
+	gtk_imhtml_search_clear(imhtml);
+
 	return FALSE;
 }