Skip to content

Commit

Permalink
Update lv_freertos.c; skip mutex delete if not initialized
Browse files Browse the repository at this point in the history
cfr. issue lvgl#7219, lw_draw_sw_deinit() called twice.
  • Loading branch information
antonio-pasini authored Nov 9, 2024
1 parent 43a3c65 commit 39414b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/osal/lv_freertos.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ lv_result_t lv_mutex_unlock(lv_mutex_t * pxMutex)

lv_result_t lv_mutex_delete(lv_mutex_t * pxMutex)
{
if(pxMutex->xIsInitialized == pdFALSE)
return LV_RESULT_INVALID;
vSemaphoreDelete(pxMutex->xMutex);
pxMutex->xIsInitialized = pdFALSE;

Expand Down

0 comments on commit 39414b1

Please sign in to comment.