diff options
Diffstat (limited to 'WebCore/bindings/v8/V8DOMMap.h')
-rw-r--r-- | WebCore/bindings/v8/V8DOMMap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/WebCore/bindings/v8/V8DOMMap.h b/WebCore/bindings/v8/V8DOMMap.h index d42daa4..a7e03a0 100644 --- a/WebCore/bindings/v8/V8DOMMap.h +++ b/WebCore/bindings/v8/V8DOMMap.h @@ -44,10 +44,13 @@ namespace WebCore { template <class KeyType, class ValueType> class AbstractWeakReferenceMap { public: AbstractWeakReferenceMap(v8::WeakReferenceCallback callback) : m_weakReferenceCallback(callback) { } + virtual ~AbstractWeakReferenceMap() { } class Visitor { public: virtual void visitDOMWrapper(KeyType* key, v8::Persistent<ValueType> object) = 0; + protected: + virtual ~Visitor() { } }; virtual v8::Persistent<ValueType> get(KeyType* obj) = 0; |