Merge pull request #4081 from mysterywolf/rt_object_delete

[kernel] rt_object_delete函数优化重置object->type
This commit is contained in:
Bernard Xiong 2020-11-24 23:22:20 +08:00 committed by GitHub
commit adf10f2d05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -473,7 +473,7 @@ void rt_object_delete(rt_object_t object)
RT_OBJECT_HOOK_CALL(rt_object_detach_hook, (object)); RT_OBJECT_HOOK_CALL(rt_object_detach_hook, (object));
/* reset object type */ /* reset object type */
object->type = 0; object->type = RT_Object_Class_Null;
/* lock interrupt */ /* lock interrupt */
temp = rt_hw_interrupt_disable(); temp = rt_hw_interrupt_disable();