Skip to content

Commit

Permalink
lvgldemo: should use nuttx_deinit to free all resources
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
XuNeo committed Oct 26, 2024
1 parent 1506c6f commit ada320f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/lvgldemo/lvgldemo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ada320f

Please sign in to comment.