aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Common/Memory/SpanOwner.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Common/Memory/SpanOwner.cs')
-rw-r--r--src/Ryujinx.Common/Memory/SpanOwner.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Ryujinx.Common/Memory/SpanOwner.cs b/src/Ryujinx.Common/Memory/SpanOwner.cs
index a4b4adf3..acb20bca 100644
--- a/src/Ryujinx.Common/Memory/SpanOwner.cs
+++ b/src/Ryujinx.Common/Memory/SpanOwner.cs
@@ -108,7 +108,7 @@ namespace Ryujinx.Common.Memory
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void Dispose()
{
- ArrayPool<T>.Shared.Return(_array);
+ ArrayPool<T>.Shared.Return(_array, RuntimeHelpers.IsReferenceOrContainsReferences<T>());
}
}
}