From 9d9ab245da8b149cea05a519fc67987fae91128b Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 22 Aug 2024 18:03:33 -0400 Subject: [PATCH] Call physis_blowfish_free in encryptGameArg --- launcher/src/encryptedarg.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/launcher/src/encryptedarg.cpp b/launcher/src/encryptedarg.cpp index 3bfe5e8..e7cc57b 100644 --- a/launcher/src/encryptedarg.cpp +++ b/launcher/src/encryptedarg.cpp @@ -66,7 +66,7 @@ QString encryptGameArg(const QString &arg) char buffer[9]{}; sprintf(buffer, "%08x", key); - Blowfish const *blowfish = physis_blowfish_initialize(reinterpret_cast(buffer), 9); + Blowfish *blowfish = physis_blowfish_initialize(reinterpret_cast(buffer), 9); uint8_t *out_data = nullptr; uint32_t out_size = 0; @@ -80,5 +80,7 @@ QString encryptGameArg(const QString &arg) const QString base64 = QString::fromUtf8(encryptedArg.toBase64(QByteArray::Base64Option::Base64UrlEncoding | QByteArray::Base64Option::KeepTrailingEquals)); const char checksum = GetChecksum(key); + physis_blowfish_free(blowfish); + return QStringLiteral("//**sqex0003%1%2**//").arg(base64, QString(QLatin1Char(checksum))); } \ No newline at end of file