Fix SEGFAULT when compiling with Qt 5.14.0

For unknown reasons this did not SEGFAULT with Qt<5.14.0.

Official Qt docs says that deleteLater is the preferred method
https://doc.qt.io/qt-5/qobject.html#deleteLater
This commit is contained in:
Vasily
2020-01-15 14:01:47 +01:00
committed by username223
parent 491671937a
commit ebc2d92333
+1 -2
View File
@@ -1543,8 +1543,7 @@ void OverlayController::OnNetworkReply( QNetworkReply* reply )
"QNetworkReply::NetworkError = "
<< reply->error();
}
reply->request().~QNetworkRequest();
reply->~QNetworkReply();
reply->deleteLater();
}
} // namespace advsettings