mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-11 07:25:19 +00:00
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:
parent
1506c6f54d
commit
0109ab39ec
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue