1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-15 04:30:33 +00:00

Delete variables going out of scope

This commit is contained in:
Carles Fernandez 2017-11-20 12:17:57 +01:00
parent 16a5f100cb
commit bc78416f52

View File

@ -607,9 +607,11 @@ int galileo_e1_dll_pll_veml_tracking_cc::save_matfile()
catch (const std::ifstream::failure &e)
{
std::cerr << "Problem reading dump file:" << e.what() << std::endl;
delete[] abs_VE;
delete[] abs_E;
delete[] abs_P;
delete[] abs_L;
delete[] abs_VL;
delete[] Prompt_I;
delete[] Prompt_Q;
delete[] PRN_start_sample_count;
@ -719,9 +721,11 @@ int galileo_e1_dll_pll_veml_tracking_cc::save_matfile()
Mat_VarFree(matvar);
}
Mat_Close(matfp);
delete[] abs_VE;
delete[] abs_E;
delete[] abs_P;
delete[] abs_L;
delete[] abs_VL;
delete[] Prompt_I;
delete[] Prompt_Q;
delete[] PRN_start_sample_count;