--- gedit-2.4.0/gedit/dialogs/gedit-dialog-replace.c.escapecancel	2004-01-16 12:09:40.376995347 -0500
+++ gedit-2.4.0/gedit/dialogs/gedit-dialog-replace.c	2004-01-16 12:12:44.627161255 -0500
@@ -346,6 +346,9 @@
 	g_signal_connect (G_OBJECT (dialog->dialog), "response",
 			  G_CALLBACK (dialog_replace_response_handler), dialog);
 
+	g_signal_connect(G_OBJECT (dialog->dialog), "close",
+			 G_CALLBACK (gtk_widget_destroy), NULL);
+
 	g_object_unref (G_OBJECT (gui));
 
 	gtk_window_set_resizable (GTK_WINDOW (dialog->dialog), FALSE);
@@ -472,6 +475,9 @@
 	g_signal_connect(G_OBJECT (dialog->dialog), "close",
 			 G_CALLBACK (dialog_find_close_handler), dialog);
 
+	g_signal_connect(G_OBJECT (dialog->dialog), "close",
+			 G_CALLBACK (gtk_widget_destroy), NULL);
+
 	g_object_unref (G_OBJECT (gui));
 
 	gtk_window_set_resizable (GTK_WINDOW (dialog->dialog), FALSE);
