Browse Source

Update sdlWindowMgr.cpp

marauder2k7 2 years ago
parent
commit
f452ea9823
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Engine/source/windowManager/sdl/sdlWindowMgr.cpp

+ 2 - 0
Engine/source/windowManager/sdl/sdlWindowMgr.cpp

@@ -68,6 +68,8 @@ PlatformWindowManagerSDL::PlatformWindowManagerSDL()
 
 PlatformWindowManagerSDL::~PlatformWindowManagerSDL()
 {
+   if (mWindowListHead == NULL)
+      return;
    // Kill all our windows first.
    while(mWindowListHead)
       // The destructors update the list, so this works just fine.