diff -r 569fd65261d0 -r 3ec07a7d8456 hedgewars/hwengine.pas --- 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;