lvgldemo: should use nuttx_deinit to free all resources

Memory leak can be detected when simply change the while(1) loop to exit. The lv_nuttx_deinit will free resources including display, input etc.

Signed-off-by: Neo Xu <neo.xu1990@gmail.com>
This commit is contained in:
Neo Xu 2024-10-26 12:56:57 +08:00 committed by Xiang Xiao
parent 1506c6f54d
commit 0109ab39ec

View file

@ -162,7 +162,7 @@ int main(int argc, FAR char *argv[])
#endif
demo_end:
lv_disp_remove(result.disp);
lv_nuttx_deinit(&result);
lv_deinit();
return 0;