Fix crash in web request destructors.
This commit is contained in:
parent
50b78034a5
commit
233be5ec13
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue