From e0f1242f3198ff4648571f3815e8654e6466e623 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Mon, 29 Dec 2025 10:47:19 +1100 Subject: [PATCH] Call parent verify method --- src/PIL/PngImagePlugin.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/PIL/PngImagePlugin.py b/src/PIL/PngImagePlugin.py index 967308221ad..e3588735f20 100644 --- a/src/PIL/PngImagePlugin.py +++ b/src/PIL/PngImagePlugin.py @@ -855,9 +855,7 @@ def verify(self) -> None: self.png.verify() self.png.close() - if self._exclusive_fp: - self.fp.close() - self.fp = None + super().verify() def seek(self, frame: int) -> None: if not self._seek_check(frame):