jamisonderek / flipper-zero-tutorials

See README.md for link to Discord & YouTube. I will use this repository for my Flipper Zero projects & wiki.
MIT License
772 stars 60 forks source link

Review the code that does "view_dispatcher_free" to make sure we do "view_dispatcher_remove_view" first. #7

Closed jamisonderek closed 1 year ago

jamisonderek commented 1 year ago

Some firmwares (not sure which one) will assert if view_dispatcher_free is called without doing view_dispatcher_remove_view first.

Need to review the following files, to ensure the bug does not exist...

findstr /snip view_dispatcher_free *.c

gpio\wiegand\wiegand.c:94: view_dispatcher_free(app->view_dispatcher); hid\hid_app\final_files\hid.c:232: view_dispatcher_free(app->view_dispatcher); hid\hid_cookie\hid.c:160: view_dispatcher_free(app->view_dispatcher); plugins\basic_scenes\basic_scenes.c:247: view_dispatcher_free(app->view_dispatcher); plugins\knob_component\knob_demo_app.c:376: view_dispatcher_free(app->view_dispatcher); plugins\scenes\scenes_demo_app.c:440: view_dispatcher_free(app->view_dispatcher);

jamisonderek commented 1 year ago

Updated relevant files that were missing view_dispatcher_remove_view.