[cppcheck-fix][instance-destroyed-immediatly] Fix commit da711db