aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2022-11-19 23:54:33 -0300
committerGitHub <noreply@github.com>2022-11-19 23:54:33 -0300
commit5de6ae426eaf1570d375ad5570e80f01a8eb4806 (patch)
treee199e1b9c2371dc002d684390aeda20d00de0550
parent69ced3a6e8636cfe7ea2f7333dd7cb4512def241 (diff)
Unsubscribe MemoryUnmappedHandler even when GPU channel is destroyed (#3872)
-rw-r--r--Ryujinx.Graphics.Gpu/GpuChannel.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Gpu/GpuChannel.cs b/Ryujinx.Graphics.Gpu/GpuChannel.cs
index b73756c6..57c632da 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;
}
}
}