Unsubscribe MemoryUnmappedHandler even when GPU channel is destroyed (#3872)

This commit is contained in:
gdkchan 2022-11-19 23:54:33 -03:00 committed by GitHub
parent 69ced3a6e8
commit 5de6ae426e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,6 +133,7 @@ namespace Ryujinx.Graphics.Gpu
{
oldMemoryManager.Physical.BufferCache.NotifyBuffersModified -= BufferManager.Rebind;
oldMemoryManager.Physical.DecrementReferenceCount();
oldMemoryManager.MemoryUnmapped -= MemoryUnmappedHandler;
}
}
}