mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
fix(osal/pthread): add missing pthread_attr_destroy call (#7434)
This commit is contained in:
parent
e53ada9605
commit
d79fc5896c
@ -48,6 +48,7 @@ lv_result_t lv_thread_init(lv_thread_t * thread, lv_thread_prio_t prio, void (*c
|
|||||||
thread->callback = callback;
|
thread->callback = callback;
|
||||||
thread->user_data = user_data;
|
thread->user_data = user_data;
|
||||||
pthread_create(&thread->thread, &attr, generic_callback, thread);
|
pthread_create(&thread->thread, &attr, generic_callback, thread);
|
||||||
|
pthread_attr_destroy(&attr);
|
||||||
return LV_RESULT_OK;
|
return LV_RESULT_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user