Index: sandbox/linux/bpf_dsl/trap_registry.h |
diff --git a/sandbox/linux/bpf_dsl/trap_registry.h b/sandbox/linux/bpf_dsl/trap_registry.h |
index 94d4722c8cc359dce0574f0982279b0d1e5d58db..6f8d37a7f48842ffe1ac0778ef1f56e1caaa42d1 100644 |
--- a/sandbox/linux/bpf_dsl/trap_registry.h |
+++ b/sandbox/linux/bpf_dsl/trap_registry.h |
@@ -53,6 +53,10 @@ class SANDBOX_EXPORT TrapRegistry { |
protected: |
TrapRegistry() {} |
+ |
+ // TrapRegistry's destructor is intentionally non-virtual so that |
+ // implementations can omit their destructor. Instead we protect against |
+ // misuse by marking it protected. |
~TrapRegistry() {} |
DISALLOW_COPY_AND_ASSIGN(TrapRegistry); |