tbf: add virtual destructor

This ensures spec compliance, because currently the base class
destructor would be called through a base class pointer to derived
class instead of the most derived one, which ist unexpected and actually
undefined behavior in c++11 and beyond.

Change-Id: Ic4abde1658a983bb0ccf9a526177dce50ff6dc23
This commit is contained in:
Eric Wild 2021-01-11 18:49:12 +01:00 committed by Hoernchen
parent 480c8acc8b
commit 1188167a92
1 changed files with 1 additions and 0 deletions

View File

@ -213,6 +213,7 @@ int tbf_assign_control_ts(struct gprs_rlcmac_tbf *tbf);
struct gprs_rlcmac_tbf {
gprs_rlcmac_tbf(BTS *bts_, GprsMs *ms, gprs_rlcmac_tbf_direction dir);
virtual ~gprs_rlcmac_tbf() {}
static void free_all(struct gprs_rlcmac_trx *trx);
static void free_all(struct gprs_rlcmac_pdch *pdch);