Also I can suggest to move calling SDL_FreeFormat() from SDL_FreeSurface() to SDL_QuitSubSystem(SDL_INIT_VIDEO) and/or SDL_Quit().
確定! 回上一頁