Always free

This commit is contained in:
MX 2023-05-10 23:07:06 +03:00
parent 735fe31f3b
commit 3e3538b9bc
No known key found for this signature in database
GPG Key ID: 7CCC66B7DBDD1C83

View File

@ -355,9 +355,7 @@ void subghz_free(SubGhz* subghz, bool alloc_for_tx_only) {
furi_record_close(RECORD_GUI);
subghz->gui = NULL;
if(!alloc_for_tx_only) {
subghz_last_settings_free(subghz->last_settings); //TODO always allocated
}
subghz_last_settings_free(subghz->last_settings);
// threshold rssi
subghz_threshold_rssi_free(subghz->threshold_rssi);