Skip to content

Commit

Permalink
clean up switching on/off profiles with JS modes mapped
Browse files Browse the repository at this point in the history
just a tiny memory leak
  • Loading branch information
bsstephan committed Oct 1, 2024
1 parent b675e94 commit 31da823
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gamepad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,9 @@ void Gamepad::reinit()
delete mapButtonE11;
delete mapButtonE12;
delete mapButtonFn;
delete mapButtonDP;
delete mapButtonLS;
delete mapButtonRS;

// reinitialize pin mappings
this->setup();
Expand Down

0 comments on commit 31da823

Please sign in to comment.