You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2020/02/27 17:32:22 UTC

[trafficserver] branch 9.0.x updated: Add virtual destructors for Http2TxFrame, Http2FrequencyCounter

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new fe16914  Add virtual destructors for Http2TxFrame, Http2FrequencyCounter
fe16914 is described below

commit fe16914aafd9933a2e0b1da17357d51161fc5fa8
Author: Alan M. Carroll <am...@waka.solidwallofcode.com>
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};