From 35ea961552dc9a827c6b6119d9ba26b1dd8292fc Mon Sep 17 00:00:00 2001 From: Brian Popow Date: Sun, 2 Jun 2024 12:49:21 +0200 Subject: [PATCH] Dispose currentLocalColorTable in final block --- src/ImageSharp/Formats/Gif/GifDecoderCore.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ImageSharp/Formats/Gif/GifDecoderCore.cs b/src/ImageSharp/Formats/Gif/GifDecoderCore.cs index d64792eba7..487457fbff 100644 --- a/src/ImageSharp/Formats/Gif/GifDecoderCore.cs +++ b/src/ImageSharp/Formats/Gif/GifDecoderCore.cs @@ -463,6 +463,7 @@ internal sealed class GifDecoderCore : IImageDecoderInternals finally { indices?.Dispose(); + this.currentLocalColorTable?.Dispose(); } }