<p>Hoernchen has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/22104">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">tbf: add virtual destructor<br><br>This ensures spec compliance, because currently the base class<br>constructor would be called through a base class pointer to derived<br>class instead of the most derived one, which ist unexpected and actually<br>undefined behavior in c++11 and beyond.<br><br>Change-Id: Ic4abde1658a983bb0ccf9a526177dce50ff6dc23<br>---<br>M src/tbf.h<br>1 file changed, 1 insertion(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/04/22104/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/tbf.h b/src/tbf.h</span><br><span>index 4bbfea2..72b5cf0 100644</span><br><span>--- a/src/tbf.h</span><br><span>+++ b/src/tbf.h</span><br><span>@@ -213,6 +213,7 @@</span><br><span> </span><br><span> struct gprs_rlcmac_tbf {</span><br><span>  gprs_rlcmac_tbf(BTS *bts_, GprsMs *ms, gprs_rlcmac_tbf_direction dir);</span><br><span style="color: hsl(120, 100%, 40%);">+        virtual ~gprs_rlcmac_tbf() {}</span><br><span> </span><br><span>    static void free_all(struct gprs_rlcmac_trx *trx);</span><br><span>   static void free_all(struct gprs_rlcmac_pdch *pdch);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/22104">change 22104</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-pcu/+/22104"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-pcu </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ic4abde1658a983bb0ccf9a526177dce50ff6dc23 </div>
<div style="display:none"> Gerrit-Change-Number: 22104 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Hoernchen <ewild@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>