From afe05eea5ab22ae1ff6b2f31db7f78cbb7fd5e0c Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 8 May 2016 23:39:36 +0800 Subject: Fixed a memory leak. --- smelt/sdl/sys_sdl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'smelt/sdl') 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() -- cgit v1.2.3