mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-03-14 17:00:17 +00:00
Apply TSR Berry suggestion to add a GC.SuppressFinalize in MemoryBlock.cs
This commit is contained in:
parent
e2acecbcea
commit
1725e03bda
1 changed files with 6 additions and 1 deletions
|
@ -379,7 +379,12 @@ namespace Ryujinx.Memory
|
|||
/// <remarks>
|
||||
/// It's an error to use the memory block after disposal.
|
||||
/// </remarks>
|
||||
public void Dispose() => FreeMemory();
|
||||
public void Dispose()
|
||||
{
|
||||
FreeMemory();
|
||||
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
~MemoryBlock() => FreeMemory();
|
||||
|
||||
|
|
Loading…
Reference in a new issue