From 943132ac62d894c9a5a959b430302710a65a8067 Mon Sep 17 00:00:00 2001 From: barelyprofessional <150058423+barelyprofessional@users.noreply.github.com> Date: Fri, 26 Dec 2025 00:29:58 -0600 Subject: [PATCH] Total memory leak death --- KfChatDotNetBot/Commands/Kasino/SlotsCommand.cs | 2 ++ 1 file changed, 2 insertions(+) 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);