Browse Source

Fixed crash cleaning up text

Text needs to be cleaned up before the renderer is freed.
Sam Lantinga 11 months ago
parent
commit
0df12d223c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/testdialog.c

+ 1 - 1
test/testdialog.c

@@ -152,9 +152,9 @@ int main(int argc, char *argv[]) {
         SDL_RenderPresent(r);
     }
 
+    SDLTest_CleanupTextDrawing();
     SDL_DestroyRenderer(r);
     SDL_DestroyWindow(w);
-    SDLTest_CleanupTextDrawing();
     SDL_Quit();
     SDLTest_CommonDestroyState(state);
     return 0;