dispose of disposables

This commit is contained in:
Yaakov committed 2023-03-24 15:00:36 +11:00
1 parent 6ffa0948a4
commit 8d6c09e779
1 file changed
+2 -2
+2 -2
View File
@@ -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:");