From 5de6ae426eaf1570d375ad5570e80f01a8eb4806 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 19 Nov 2022 23:54:33 -0300 Subject: [PATCH] Unsubscribe MemoryUnmappedHandler even when GPU channel is destroyed (#3872) --- Ryujinx.Graphics.Gpu/GpuChannel.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Ryujinx.Graphics.Gpu/GpuChannel.cs b/Ryujinx.Graphics.Gpu/GpuChannel.cs index b73756c64..57c632dac 100644 --- a/Ryujinx.Graphics.Gpu/GpuChannel.cs +++ b/Ryujinx.Graphics.Gpu/GpuChannel.cs @@ -133,6 +133,7 @@ namespace Ryujinx.Graphics.Gpu { oldMemoryManager.Physical.BufferCache.NotifyBuffersModified -= BufferManager.Rebind; oldMemoryManager.Physical.DecrementReferenceCount(); + oldMemoryManager.MemoryUnmapped -= MemoryUnmappedHandler; } } }