aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-05-08 23:39:36 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-05-08 23:39:36 +0800
commitafe05eea5ab22ae1ff6b2f31db7f78cbb7fd5e0c (patch)
tree2b570b3809cc91e51d12b0f61eb737d551d8d50e
parentcc3e00ff8ec937f12e0d3be6f621b69465f7ffbd (diff)
downloadSMELT-afe05eea5ab22ae1ff6b2f31db7f78cbb7fd5e0c.tar.xz
Fixed a memory leak.
-rw-r--r--smelt/sdl/sys_sdl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/smelt/sdl/sys_sdl.cpp b/smelt/sdl/sys_sdl.cpp
index b33d71b..5641f31 100644
--- a/smelt/sdl/sys_sdl.cpp
+++ b/smelt/sdl/sys_sdl.cpp
@@ -144,7 +144,7 @@ void SMELT_IMPL::smFinale()
{
smLog("%s:" SLINE ": Cleaning up...\n",SYS_SDL_SRCFN);
clearQueue();finiOAL();finiOGL();
- SDL_Quit();hwnd=0;
+ SDL_GL_UnloadLibrary();SDL_Quit();hwnd=0;
}
void SMELT_IMPL::smMainLoop()