testautomation_video: fix memory leak

This commit is contained in:
Sylvain 2023-03-24 09:37:04 +01:00 committed by Sylvain Becker
parent 8d3d4e523e
commit 693558a894
1 changed files with 1 additions and 0 deletions

View File

@ -313,6 +313,7 @@ static int video_getClosestDisplayModeCurrentResolution(void *arg)
SDLTest_AssertCheck(closest->pixel_h == current.pixel_h, "Verify returned height matches current height; expected: %d, got: %d", current.pixel_h, closest->pixel_h);
}
}
SDL_free((void *)modes);
}
SDL_free(displays);
}