From 61f1e87180ea3eb3aba616b883b798bdbdcfd79b Mon Sep 17 00:00:00 2001 From: fgenesis Date: Mon, 15 Apr 2019 02:26:48 +0200 Subject: [PATCH] fix uninitialized ptr. ooopsie --- BBGE/Core.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/BBGE/Core.cpp b/BBGE/Core.cpp index a4e6ae0..1201a5f 100644 --- a/BBGE/Core.cpp +++ b/BBGE/Core.cpp @@ -273,6 +273,7 @@ static bool checkWritable(const std::string& path, bool warn, bool critical) Core::Core(const std::string &filesystem, const std::string& extraDataDir, int numRenderLayers, const std::string &appName, int particleSize, std::string userDataSubFolder) : ActionMapper(), StateManager(), appName(appName) { + window = NULL; sound = NULL; _extraDataDir = extraDataDir; @@ -810,6 +811,7 @@ void Core::shutdownGraphicsLibrary() glFinish(); delete window; + window = NULL; SDL_QuitSubSystem(SDL_INIT_VIDEO); unload_all_glsyms();