mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 13:08:36 -07:00
Always free
This commit is contained in:
@@ -355,9 +355,7 @@ void subghz_free(SubGhz* subghz, bool alloc_for_tx_only) {
|
|||||||
furi_record_close(RECORD_GUI);
|
furi_record_close(RECORD_GUI);
|
||||||
subghz->gui = NULL;
|
subghz->gui = NULL;
|
||||||
|
|
||||||
if(!alloc_for_tx_only) {
|
subghz_last_settings_free(subghz->last_settings);
|
||||||
subghz_last_settings_free(subghz->last_settings); //TODO always allocated
|
|
||||||
}
|
|
||||||
|
|
||||||
// threshold rssi
|
// threshold rssi
|
||||||
subghz_threshold_rssi_free(subghz->threshold_rssi);
|
subghz_threshold_rssi_free(subghz->threshold_rssi);
|
||||||
|
|||||||
Reference in New Issue
Block a user