aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2018-01-09 14:24:32 -0800
committerGravatar David Garcia Quintas <dgq@google.com>2018-01-09 15:59:12 -0800
commitbaf1ac7af91eab2da6024b05ddb83720d9644b94 (patch)
tree74268437337eaa2fcc9fd777a317750b3d961043 /src/core/lib
parent53bfe69f707e3729cd5845091a1282771b7e45ee (diff)
PR comments
Diffstat (limited to 'src/core/lib')
-rw-r--r--src/core/lib/support/ref_counted.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/lib/support/ref_counted.h b/src/core/lib/support/ref_counted.h
index f2182baea1..8fdc3458d1 100644
--- a/src/core/lib/support/ref_counted.h
+++ b/src/core/lib/support/ref_counted.h
@@ -45,6 +45,7 @@ class RefCounted {
// Not copyable nor movable.
RefCounted(const RefCounted&) = delete;
RefCounted& operator=(const RefCounted&) = delete;
+ GRPC_ABSTRACT_BASE_CLASS
protected:
// Allow Delete() to access destructor.
@@ -112,6 +113,8 @@ class RefCountedWithTracing {
gpr_ref_init(&refs_, 1);
}
+ virtual ~RefCountedWithTracing() {}
+
private:
TraceFlag* trace_flag_ = nullptr;
gpr_refcount refs_;