From b934c41ed04a305b6895709d8a1f8a278ab1f03a Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Wed, 28 Sep 2022 06:51:13 +0300 Subject: [PATCH] close file --- applications/main/subghz/subghz_last_settings.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/applications/main/subghz/subghz_last_settings.c b/applications/main/subghz/subghz_last_settings.c index aa234c602..b24273cf3 100644 --- a/applications/main/subghz/subghz_last_settings.c +++ b/applications/main/subghz/subghz_last_settings.c @@ -56,6 +56,7 @@ void subghz_last_settings_load(SubGhzLastSettings* instance, size_t preset_count } } + flipper_format_file_close(fff_data_file); flipper_format_free(fff_data_file); furi_record_close(RECORD_STORAGE); } @@ -96,6 +97,7 @@ bool subghz_last_settings_save(SubGhzLastSettings* instance) { FURI_LOG_E(TAG, "Error save file %s", SUBGHZ_LAST_SETTINGS_PATH); } + flipper_format_file_close(file); flipper_format_free(file); furi_record_close(RECORD_STORAGE);