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:
parent
480c8acc8b
commit
1188167a92
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue