delete neighbour cells in rrc dtor

This commit is contained in:
Andre Puschmann 2018-05-25 12:04:25 +02:00
parent 3f816813c1
commit b40605bc7f
1 changed files with 5 additions and 0 deletions

View File

@ -66,6 +66,11 @@ rrc::~rrc()
if (serving_cell) {
delete(serving_cell);
}
std::vector<cell_t*>::iterator it;
for (it = neighbour_cells.begin(); it != neighbour_cells.end(); ++it) {
delete(*it);
}
}
static void liblte_rrc_handler(void *ctx, char *str) {