jamisonderek/flipper-zero-tutorials

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

jamisonderek opened this issue · 1 comments

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);

Updated relevant files that were missing view_dispatcher_remove_view.