1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-01-25 01:36:38 +00:00

fix uninitialized ptr. ooopsie

This commit is contained in:
fgenesis 2019-04-15 02:26:48 +02:00
parent b8b9039693
commit 61f1e87180

View file

@ -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) 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) : ActionMapper(), StateManager(), appName(appName)
{ {
window = NULL;
sound = NULL; sound = NULL;
_extraDataDir = extraDataDir; _extraDataDir = extraDataDir;
@ -810,6 +811,7 @@ void Core::shutdownGraphicsLibrary()
glFinish(); glFinish();
delete window; delete window;
window = NULL;
SDL_QuitSubSystem(SDL_INIT_VIDEO); SDL_QuitSubSystem(SDL_INIT_VIDEO);
unload_all_glsyms(); unload_all_glsyms();