Don't destroy a NULL window

c++11
scrawl 10 years ago
parent 49df07ea7f
commit b7fa645530

@ -235,8 +235,11 @@ OMW::Engine::~Engine()
mViewer = NULL;
SDL_DestroyWindow(mWindow);
mWindow = NULL;
if (mWindow)
{
SDL_DestroyWindow(mWindow);
mWindow = NULL;
}
SDL_Quit();
}

Loading…
Cancel
Save