Fix crash in web request destructors.

This commit is contained in:
John Preston 2018-06-06 12:32:38 +03:00
parent 50b78034a5
commit 233be5ec13
1 changed files with 6 additions and 1 deletions

View File

@ -147,8 +147,13 @@ ServiceWebRequest &ServiceWebRequest::operator=(ServiceWebRequest &&other) {
void ServiceWebRequest::destroy() {
if (const auto value = base::take(reply)) {
value->deleteLater();
value->disconnect(
value,
&QNetworkReply::finished,
nullptr,
nullptr);
value->abort();
value->deleteLater();
}
}