mirror of
https://github.com/gtalent/sc9k.git
synced 2025-01-23 00:33:36 -06:00
Fix memory leaks
This commit is contained in:
parent
79982c5c2c
commit
3b470d5346
@ -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();
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user