diff --git a/checks/check_imaging_leaks.py b/checks/check_imaging_leaks.py index 14f3c309814..76551af6b0d 100644 --- a/checks/check_imaging_leaks.py +++ b/checks/check_imaging_leaks.py @@ -46,7 +46,7 @@ def _test_leak( def test_leak_putdata() -> None: im = Image.new("RGB", (25, 25)) - _test_leak(min_iterations, max_iterations, im.putdata, im.getdata()) + _test_leak(min_iterations, max_iterations, im.putdata, im.get_flattened_data()) def test_leak_getlist() -> None: