mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-01 09:27:39 +00:00
Fixed crash cleaning up text
Text needs to be cleaned up before the renderer is freed.
This commit is contained in:
parent
0ab5a8a413
commit
0df12d223c
1 changed files with 1 additions and 1 deletions
|
@ -152,9 +152,9 @@ int main(int argc, char *argv[]) {
|
||||||
SDL_RenderPresent(r);
|
SDL_RenderPresent(r);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SDLTest_CleanupTextDrawing();
|
||||||
SDL_DestroyRenderer(r);
|
SDL_DestroyRenderer(r);
|
||||||
SDL_DestroyWindow(w);
|
SDL_DestroyWindow(w);
|
||||||
SDLTest_CleanupTextDrawing();
|
|
||||||
SDL_Quit();
|
SDL_Quit();
|
||||||
SDLTest_CommonDestroyState(state);
|
SDLTest_CommonDestroyState(state);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue