Total memory leak death

This commit is contained in:
barelyprofessional
2025-12-26 00:29:58 -06:00
parent d2f06d30ed
commit 943132ac62

View File

@@ -516,7 +516,9 @@ public class SlotsCommand : ICommand
using var frame = SixLabors.ImageSharp.Image.LoadPixelData<Rgba32>(span, rImg.Width, rImg.Height);
frame.Frames.RootFrame.Metadata.GetWebpMetadata().FrameDelay = 2;
animated.Frames.AddFrame(frame.Frames.RootFrame);
Raylib.UnloadImage(rImg);
}
frames.Clear();
if (animated.Frames.Count > 1) animated.Frames.RemoveFrame(0);