mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-04-17 11:58:27 +00:00
Fix AccountManagerServicesRequest listener leak causing crash on OIDC device list error
This commit is contained in:
parent
d78056ad8f
commit
60c5740c08
1 changed files with 4 additions and 0 deletions
|
|
@ -37,6 +37,9 @@ AccountManagerServicesModel::AccountManagerServicesModel(
|
|||
|
||||
AccountManagerServicesModel::~AccountManagerServicesModel() {
|
||||
mustBeInLinphoneThread("~" + getClassName());
|
||||
if (mRequest) {
|
||||
mRequest->setSelf(nullptr);
|
||||
}
|
||||
}
|
||||
|
||||
void AccountManagerServicesModel::setRequestAndSubmit(
|
||||
|
|
@ -45,6 +48,7 @@ void AccountManagerServicesModel::setRequestAndSubmit(
|
|||
disconnect(mRequest.get(), &AccountManagerServicesRequestModel::requestSuccessfull, this, nullptr);
|
||||
disconnect(mRequest.get(), &AccountManagerServicesRequestModel::requestError, this, nullptr);
|
||||
disconnect(mRequest.get(), &AccountManagerServicesRequestModel::devicesListFetched, this, nullptr);
|
||||
mRequest->setSelf(nullptr);
|
||||
mRequest = nullptr;
|
||||
}
|
||||
mRequest = Utils::makeQObject_ptr<AccountManagerServicesRequestModel>(request);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue