--- a/src/qtgui/rclmain_w.cpp
+++ b/src/qtgui/rclmain_w.cpp
@@ -683,9 +683,6 @@
 	prefs.ssearchTyp = sSearch->searchTypCMB->currentIndex();
     }
 
-    if (asearchform)
-	delete asearchform;
-
     rwSettings(true);
 
     // We should do the right thing and let exit() call all the