Update StreamUtils.cs

This commit is contained in:
Marco Carvalho 2024-05-27 15:29:29 -03:00 committed by GitHub
parent b4eea8c33e
commit 2872236d2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -59,7 +59,7 @@ namespace Ryujinx.Common.Utilities
public static async Task<byte[]> StreamToBytesAsync(Stream input, CancellationToken cancellationToken = default)
{
await using MemoryStream stream = MemoryStreamManager.Shared.GetStream();
using MemoryStream stream = MemoryStreamManager.Shared.GetStream();
await input.CopyToAsync(stream, cancellationToken);