mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2024-11-23 06:20:07 +00:00
Bugfix: add ref count for shared_ptr
Signed-off-by: z00838083 <zhuhuixuan@huawei.com>
This commit is contained in:
parent
2462e60bf2
commit
d695f1bcf9
@ -47,10 +47,12 @@ int32_t DSchedContinueStateMachine::Execute(const AppExecFwk::InnerEvent::Pointe
|
||||
HILOGE("DSchedContinueStateMachine excute failed, continue or currentState is null");
|
||||
return INVALID_PARAMETERS_ERR;
|
||||
}
|
||||
int32_t ret = currentState_->Execute(dContinue, event);
|
||||
|
||||
auto state = currentState_;
|
||||
int32_t ret = state->Execute(dContinue, event);
|
||||
if (ret != ERR_OK) {
|
||||
HILOGE("DSchedContinueStateMachine currentState: %{public}d excute event %{public}d failed, ret %{public}d",
|
||||
currentState_->GetStateType(), event->GetInnerEventId(), ret);
|
||||
state->GetStateType(), event->GetInnerEventId(), ret);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user