fix(nuttx): fix assert when release LCD draw buffer (#7159)

Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
This commit is contained in:
Neo Xu
2024-10-28 15:52:48 +08:00
committed by GitHub
parent 932c14086b
commit 3a2d111401

View File

@@ -216,11 +216,11 @@ static void display_release_cb(lv_event_t * e)
/* clear display buffer */
if(disp->buf_1) {
lv_free(disp->buf_1);
lv_free(disp->buf_1->data);
disp->buf_1 = NULL;
}
if(disp->buf_2) {
lv_free(disp->buf_2);
lv_free(disp->buf_2->data);
disp->buf_2 = NULL;
}