SMA: fix crash on login failure of inverter
This commit is contained in:
parent
23d620c52d
commit
c193e69b3f
@ -398,7 +398,7 @@ void IntegrationPluginSma::setupThing(ThingSetupInfo *info)
|
|||||||
pluginStorage()->remove("");
|
pluginStorage()->remove("");
|
||||||
pluginStorage()->endGroup();
|
pluginStorage()->endGroup();
|
||||||
|
|
||||||
delete inverter;
|
inverter->deleteLater();
|
||||||
info->finish(Thing::ThingErrorAuthenticationFailure, QT_TR_NOOP("Failed to log in with the given password. Please try again."));
|
info->finish(Thing::ThingErrorAuthenticationFailure, QT_TR_NOOP("Failed to log in with the given password. Please try again."));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user