From 8d6c09e779d26bcbf5a218d977368b8073f43c8b Mon Sep 17 00:00:00 2001 From: Yaakov Date: Fri, 24 Mar 2023 15:00:36 +1100 Subject: [PATCH] dispose of disposables --- DepotDownloader/Steam3Session.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DepotDownloader/Steam3Session.cs b/DepotDownloader/Steam3Session.cs index e30ff64e..db42df8d 100644 --- a/DepotDownloader/Steam3Session.cs +++ b/DepotDownloader/Steam3Session.cs @@ -747,9 +747,9 @@ namespace DepotDownloader private static void DisplayQrCode(string challengeUrl) { // Encode the link as a QR code - var qrGenerator = new QRCodeGenerator(); + using var qrGenerator = new QRCodeGenerator(); var qrCodeData = qrGenerator.CreateQrCode(challengeUrl, QRCodeGenerator.ECCLevel.L); - var qrCode = new AsciiQRCode(qrCodeData); + using var qrCode = new AsciiQRCode(qrCodeData); var qrCodeAsAsciiArt = qrCode.GetGraphic(1, drawQuietZones: false); Console.WriteLine("Use the Steam Mobile App to sign in with this QR code:");