Skip to content

Commit

Permalink
dispose image
Browse files Browse the repository at this point in the history
  • Loading branch information
VILLAN3LL3 committed Jul 2, 2023
1 parent 8aa282d commit 397f1f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Orso.Arpa.Misc/ArpaQRCodeGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static async Task<byte[]> GetQRCodeAsync(string textToEncode, Cancellatio
var qrGenerator = new QRCodeGenerator();
QRCodeData qrCodeData = qrGenerator.CreateQrCode(textToEncode, QRCodeGenerator.ECCLevel.Q);
var qrCode = new QRCode(qrCodeData);
Image qrCodeImage = qrCode.GetGraphic(20);
using Image qrCodeImage = qrCode.GetGraphic(20);
return await ImageToBytesAsync(qrCodeImage, cancellationToken);
}

Expand Down

0 comments on commit 397f1f7

Please sign in to comment.