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:
@@ -1543,8 +1543,7 @@ void OverlayController::OnNetworkReply( QNetworkReply* reply )
|
||||
"QNetworkReply::NetworkError = "
|
||||
<< reply->error();
|
||||
}
|
||||
reply->request().~QNetworkRequest();
|
||||
reply->~QNetworkReply();
|
||||
reply->deleteLater();
|
||||
}
|
||||
|
||||
} // namespace advsettings
|
||||
|
||||
Reference in New Issue
Block a user