This is an automated email from the ASF dual-hosted git repository. zwoop pushed a commit to branch 8.1.x in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit a65bc9381dc6f3c5628c989dff6f0ff82b76c765 Author: Alan M. Carroll <[email protected]> AuthorDate: Mon Jan 27 11:03:33 2020 -0600 Add virtual destructors for Http2TxFrame, Http2FrequencyCounter (cherry picked from commit 11aeedfc0e08391555bfa880469b5b371639530f) --- proxy/http2/Http2Frame.h | 1 + proxy/http2/Http2FrequencyCounter.h | 1 + 2 files changed, 2 insertions(+) diff --git a/proxy/http2/Http2Frame.h b/proxy/http2/Http2Frame.h index 1715dd5..dd68b8c 100644 --- a/proxy/http2/Http2Frame.h +++ b/proxy/http2/Http2Frame.h @@ -53,6 +53,7 @@ class Http2TxFrame { public: Http2TxFrame(const Http2FrameHeader &h) : _hdr(h) {} + virtual ~Http2TxFrame() {} // Don't allocate on heap void *operator new(std::size_t) = delete; diff --git a/proxy/http2/Http2FrequencyCounter.h b/proxy/http2/Http2FrequencyCounter.h index 0b6de17..bcd3dbb 100644 --- a/proxy/http2/Http2FrequencyCounter.h +++ b/proxy/http2/Http2FrequencyCounter.h @@ -31,6 +31,7 @@ class Http2FrequencyCounter public: void increment(uint16_t amount = 1); uint32_t get_count(); + virtual ~Http2FrequencyCounter() {} protected: uint16_t _count[2] = {0};
