Fixed possible crash when cleaning up memory
Fixed possible crash when cleaning up memory

RavenX8/osIROSE-new,RavenX8/osIROSE-new,dev-osrose/osIROSE-new,dev-osrose/osIROSE-new,dev-osrose/osIROSE-new,RavenX8/osIROSE-new