瀏覽代碼

testautomation_video: fix memory leak

Sylvain 2 年之前
父節點
當前提交
693558a894
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      test/testautomation_video.c

+ 1 - 0
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);
     }