hedgewars/hwengine.pas
changeset 5166 d1eb1560b4d5
parent 5130 3602ede67ec5
child 5167 7b515d0945b1
--- a/hedgewars/hwengine.pas	Tue Apr 19 15:34:21 2011 -0400
+++ b/hedgewars/hwengine.pas	Wed Apr 20 05:26:47 2011 +0200
@@ -132,6 +132,8 @@
     SDL_RenderClear(SDLrender);
     SDL_DestroyRenderer(SDLrender);
     SDL_DestroyWindow(SDLwindow);
+    SDLrender:= nil;
+    SDLwindow:= nil;
 {$ENDIF}
     SDL_Quit();
     isTerminated:= false;