tgfclient: fix sdl screen surface leak

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9396 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: ada24f3ec6dca40860210b4f0e8f374359b0671e
Former-commit-id: 24f7100af039cb7b8ecb8cb882b3ab1ea4170702
This commit is contained in:
iobyte 2024-03-31 21:20:48 +00:00
parent a83b9c98fa
commit 06d20693d6

View file

@ -779,6 +779,11 @@ void GfScrShutdown(void)
GLContext = NULL;
SDL_DestroyWindow(GfuiWindow);
GfuiWindow = NULL;
if(PScreenSurface)
{
SDL_FreeSurface(PScreenSurface);
PScreenSurface = NULL;
}
// Shutdown SDL video sub-system.
SDL_QuitSubSystem(SDL_INIT_VIDEO | SDL_INIT_AUDIO);