Skip to content

Commit

Permalink
Fixes incorrect frees
Browse files Browse the repository at this point in the history
  • Loading branch information
acegoal07 committed May 20, 2024
1 parent 06626d8 commit f99ad11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions scenes/nfc_playlist_scene_file_rename.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ void nfc_playlist_file_rename_scene_on_enter(void* context) {
furi_string_replace(tmp_file_name_furi, ".txt", "");

nfc_playlist->text_input_output = (char*)furi_string_get_cstr(tmp_file_name_furi);
furi_string_free(tmp_file_name_furi);
text_input_set_header_text(nfc_playlist->text_input, "Enter new file name");
text_input_set_minimum_length(nfc_playlist->text_input, 1);
text_input_set_result_callback(nfc_playlist->text_input, nfc_playlist_file_rename_menu_callback, nfc_playlist, nfc_playlist->text_input_output, 50, false);
Expand Down
3 changes: 1 addition & 2 deletions scenes/nfc_playlist_scene_playlist_select.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ void nfc_playlist_playlist_select_menu_callback(void* context) {
}
furi_string_free(line);
file_stream_close(stream);
stream_free(stream);
}

stream_free(stream);
furi_record_close(RECORD_STORAGE);

scene_manager_previous_scene(nfc_playlist->scene_manager);
Expand Down

0 comments on commit f99ad11

Please sign in to comment.