tests: plug leaks when running with --trackmem
(using SDL_VIDEO_DRIVER=x11/wayland on Linux)
This commit is contained in:
committed by
Anonymous Maarten
parent
f42bbeca24
commit
2a01f9dcb5
@@ -388,6 +388,15 @@ ret:
|
||||
/* Destroy the window. */
|
||||
SDL_DestroyWindow(window);
|
||||
|
||||
if (g_bitmap) {
|
||||
SDL_free(g_bitmap);
|
||||
g_bitmap = NULL;
|
||||
}
|
||||
if (g_shape_surface) {
|
||||
SDL_DestroySurface(g_shape_surface);
|
||||
g_shape_surface = NULL;
|
||||
}
|
||||
|
||||
SDL_Quit();
|
||||
SDLTest_CommonDestroyState(state);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user