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 = "
|
"QNetworkReply::NetworkError = "
|
||||||
<< reply->error();
|
<< reply->error();
|
||||||
}
|
}
|
||||||
reply->request().~QNetworkRequest();
|
reply->deleteLater();
|
||||||
reply->~QNetworkReply();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace advsettings
|
} // namespace advsettings
|
||||||
|
|||||||
Reference in New Issue
Block a user