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:
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)
|
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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue