fix(nuttx): fix assert when release LCD draw buffer (#7159)
Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user