diff --git a/src/obsclient.cpp b/src/obsclient.cpp index 714a51e..c8c9168 100644 --- a/src/obsclient.cpp +++ b/src/obsclient.cpp @@ -40,7 +40,7 @@ void OBSClient::setSlidesVisible(int state) { void OBSClient::get(QString urlExt) { QUrl url(QString(BaseUrl) + urlExt); QNetworkRequest rqst(url); - m_nam->get(rqst); + m_nam->get(rqst)->deleteLater(); } void OBSClient::poll() { @@ -50,6 +50,7 @@ void OBSClient::poll() { } void OBSClient::handlePollResponse(QNetworkReply *reply) { + reply->deleteLater(); if (reply->error()) { qDebug() << "OBSClient error response:" << reply->errorString(); emit pollFailed(); diff --git a/src/openlpclient.cpp b/src/openlpclient.cpp index 88fe0c2..f6fc4d3 100644 --- a/src/openlpclient.cpp +++ b/src/openlpclient.cpp @@ -85,12 +85,14 @@ void OpenLPClient::poll() { } void OpenLPClient::handleGeneralResponse(QNetworkReply *reply) { + reply->deleteLater(); if (reply->error()) { qDebug() << "OpenLPClient error response:" << reply->request().url() << ":" << reply->errorString(); } } void OpenLPClient::handlePollResponse(QNetworkReply *reply) { + reply->deleteLater(); if (reply->error()) { qDebug() << "OpenLPClient error response:" << reply->errorString(); emit pollFailed(); @@ -120,6 +122,7 @@ void OpenLPClient::handlePollResponse(QNetworkReply *reply) { } void OpenLPClient::handleSongListResponse(QNetworkReply *reply) { + reply->deleteLater(); if (reply->error()) { qDebug() << "OpenLPClient error response:" << reply->errorString(); } @@ -142,6 +145,7 @@ void OpenLPClient::handleSongListResponse(QNetworkReply *reply) { } void OpenLPClient::handleSlideListResponse(QNetworkReply *reply) { + reply->deleteLater(); if (reply->error()) { qDebug() << "OpenLPClient error response:" << reply->errorString(); }