diff -up gedit-3.0.2/gedit/gedit-view-frame.c.foo gedit-3.0.2/gedit/gedit-view-frame.c
--- gedit-3.0.2/gedit/gedit-view-frame.c.foo	2011-05-25 09:36:42.453489684 -0500
+++ gedit-3.0.2/gedit/gedit-view-frame.c	2011-05-25 09:36:50.459389598 -0500
@@ -1246,6 +1246,7 @@ init_search_entry (GeditViewFrame *frame
 		gint      sel_len = 0;
 
 		g_free (frame->priv->old_search_text);
+		frame->priv->old_search_text = NULL;
 
 		old_find_text = gedit_document_get_search_text (GEDIT_DOCUMENT (buffer),
 		                                                &old_find_flags);
