hedgewars/hwengine.pas
changeset 3165 3ec07a7d8456
parent 3162 663e0e55e5c7
child 3236 4ab3917d7d44
--- a/hedgewars/hwengine.pas	Mon Mar 29 20:49:36 2010 +0000
+++ b/hedgewars/hwengine.pas	Mon Mar 29 23:20:34 2010 +0000
@@ -318,11 +318,8 @@
 
     MainLoop();
     OnDestroy();
-    if alsoShutdownFrontend then
-    begin
-        alsoShutdownFrontend:= false;
-        halt;
-    end;
+{$IFDEF HWLIBRARY}freeEverything();{$ENDIF}
+    if alsoShutdownFrontend then halt;
 end;
 
 procedure initEverything;