diff options
-rw-r--r-- | src/MatrixClient.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/MatrixClient.cc b/src/MatrixClient.cc index 1e7a5339..f4d2e66a 100644 --- a/src/MatrixClient.cc +++ b/src/MatrixClient.cc @@ -745,7 +745,7 @@ MatrixClient::downloadImage(const QUrl &url) auto reply = get(image_request); auto proxy = new DownloadMediaProxy; - connect(reply, &QNetworkReply::finished, this, [this, reply, proxy]() { + connect(reply, &QNetworkReply::finished, this, [reply, proxy]() { reply->deleteLater(); int status = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt(); @@ -776,7 +776,7 @@ MatrixClient::downloadFile(const QUrl &url) auto reply = get(fileRequest); auto proxy = new DownloadMediaProxy; - connect(reply, &QNetworkReply::finished, this, [this, reply, proxy]() { + connect(reply, &QNetworkReply::finished, this, [reply, proxy]() { reply->deleteLater(); int status = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt(); |