SDL: testautomation_video: fix memory leak

From 693558a89402b9ca728fc3dd15c747dc5a66c0b8 Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Fri, 24 Mar 2023 09:37:04 +0100
Subject: [PATCH] testautomation_video: fix memory leak

---
 test/testautomation_video.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/test/testautomation_video.c b/test/testautomation_video.c
index 776047c1846f..b8fd98f5f4d4 100644
--- a/test/testautomation_video.c
+++ b/test/testautomation_video.c
@@ -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);
     }