diff --git a/KfChatDotNetBot/Commands/Kasino/SlotsCommand.cs b/KfChatDotNetBot/Commands/Kasino/SlotsCommand.cs index 4996dc6..2b5de17 100644 --- a/KfChatDotNetBot/Commands/Kasino/SlotsCommand.cs +++ b/KfChatDotNetBot/Commands/Kasino/SlotsCommand.cs @@ -516,7 +516,9 @@ public class SlotsCommand : ICommand using var frame = SixLabors.ImageSharp.Image.LoadPixelData(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);