1
0
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:
Liam 2024-12-10 14:42:15 -05:00 committed by GitHub
parent e53ada9605
commit d79fc5896c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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->user_data = user_data;
pthread_create(&thread->thread, &attr, generic_callback, thread);
pthread_attr_destroy(&attr);
return LV_RESULT_OK;
}