Skip to content

Commit

Permalink
Merge pull request #36 from Willy-JL/fix-double-free-crash
Browse files Browse the repository at this point in the history
Fix double free crash at app exit on TLSF
  • Loading branch information
kbembedded authored May 18, 2024
2 parents a9feb75 + 4066eb5 commit b9fd9dc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion views/select_pokemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,5 @@ View* select_pokemon_alloc(PokemonFap* pokemon_fap) {

void select_pokemon_free(PokemonFap* pokemon_fap) {
furi_assert(pokemon_fap);
view_free_model(pokemon_fap->select_view);
view_free(pokemon_fap->select_view);
}
1 change: 0 additions & 1 deletion views/trade.c
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,6 @@ void trade_free(ViewDispatcher* view_dispatcher, uint32_t view_id, void* trade_c

view_dispatcher_remove_view(view_dispatcher, view_id);

view_free_model(trade->view);
view_free(trade->view);
free(trade->input_block);
free(trade);
Expand Down

0 comments on commit b9fd9dc

Please sign in to comment.