fix: use new shared pointer for repsonse buffer

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers 2023-06-25 14:36:20 -07:00
parent f39d2de0cc
commit 8aeec1d52d
No known key found for this signature in database
GPG Key ID: E10E321EB160949B

View File

@ -1166,7 +1166,7 @@ void PrismUpdaterApp::downloadReleasePage(const QString& api_url, int page)
int per_page = 30;
auto page_url = QString("%1?per_page=%2&page=%3").arg(api_url).arg(QString::number(per_page)).arg(QString::number(page));
auto response = std::make_shared<QByteArray>();
auto download = Net::Download::makeByteArray(page_url, response.get());
auto download = Net::Download::makeByteArray(page_url, response);
download->setNetwork(m_network);
m_current_url = page_url;