From 0ddb0dc3ad6da284faeb093eb472e3450be8dbcb Mon Sep 17 00:00:00 2001 From: Cvolton Date: Fri, 25 Aug 2023 18:47:34 +0200 Subject: [PATCH] test retaining request to see if it fixes mac --- src/managers/BetterInfoOnline.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/managers/BetterInfoOnline.cpp b/src/managers/BetterInfoOnline.cpp index ea82177..7526799 100644 --- a/src/managers/BetterInfoOnline.cpp +++ b/src/managers/BetterInfoOnline.cpp @@ -30,6 +30,7 @@ void BetterInfoOnline::loadScores(int accountID, bool force){ request->setUrl("http://www.boomlings.com/database/getGJScores20.php"); request->setRequestType(CCHttpRequest::HttpRequestType::kHttpPost); request->setResponseCallback(this, httpresponse_selector(BetterInfoOnline::onScoresFinished)); + request->retain(); //TODO: make this slightly more dynamic auto postData = CCString::createWithFormat("gameVersion=21&binaryVersion=35&gdw=0&accountID=%i&type=relative&secret=Wmfd2893gb7", accountID); request->setRequestData(