mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-01-24 17:26:41 +00:00
fix uninitialized ptr. ooopsie
This commit is contained in:
parent
b8b9039693
commit
61f1e87180
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue