mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-03-14 22:40:18 +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>
|
/// <remarks>
|
||||||
/// It's an error to use the memory block after disposal.
|
/// It's an error to use the memory block after disposal.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public void Dispose() => FreeMemory();
|
public void Dispose()
|
||||||
|
{
|
||||||
|
FreeMemory();
|
||||||
|
|
||||||
|
GC.SuppressFinalize(this);
|
||||||
|
}
|
||||||
|
|
||||||
~MemoryBlock() => FreeMemory();
|
~MemoryBlock() => FreeMemory();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue