Skip to content

Commit

Permalink
pokemon_app.cpp: Clean up double calls in alloc
Browse files Browse the repository at this point in the history
  • Loading branch information
kbembedded committed Jun 11, 2023
1 parent 04e0332 commit 00e7701
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pokemon_app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,12 @@ extern "C" int32_t pokemon_app(void* p) {
furi_hal_light_set(LightRed, 0x00);
furi_hal_light_set(LightGreen, 0x00);
furi_hal_light_set(LightBlue, 0x00);
view_dispatcher_enable_queue(app->view_dispatcher);
view_dispatcher_attach_to_gui(app->view_dispatcher, app->gui, ViewDispatcherTypeFullscreen);
//switch view and run dispatcher
view_dispatcher_switch_to_view(app->view_dispatcher, AppViewSelectPokemon);
view_dispatcher_run(app->view_dispatcher);

// Free resources
free_app(app);
furi_record_close(RECORD_GUI);

return 0;
}
}

0 comments on commit 00e7701

Please sign in to comment.