diff options
Diffstat (limited to 'src/context/context.h')
-rw-r--r-- | src/context/context.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/context/context.h b/src/context/context.h index 6b9f9fd6d..87e4e5fa1 100644 --- a/src/context/context.h +++ b/src/context/context.h @@ -399,7 +399,7 @@ public: /** * Destructor does nothing: subclass must explicitly call destroy() instead. */ - virtual ~ContextObj() {} + virtual ~ContextObj() { Debug("contextgc") << "context obj dest" << std::endl; } /** * If you want to allocate a ContextObj object on the heap, use this @@ -426,6 +426,7 @@ public: * ContextMemoryManager as an argument. */ void deleteSelf() { + this->~ContextObj(); ::operator delete(this); } |