diff options
Diffstat (limited to 'WebCore/bindings/v8')
| -rw-r--r-- | WebCore/bindings/v8/V8DOMMap.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/WebCore/bindings/v8/V8DOMMap.h b/WebCore/bindings/v8/V8DOMMap.h index efd4126..47fa765 100644 --- a/WebCore/bindings/v8/V8DOMMap.h +++ b/WebCore/bindings/v8/V8DOMMap.h @@ -46,15 +46,13 @@ namespace WebCore { template<class KeyType, class ValueType> class WeakReferenceMap { public: WeakReferenceMap(v8::WeakReferenceCallback callback) : m_weakReferenceCallback(callback) { } - #ifndef NDEBUG virtual ~WeakReferenceMap() { +#ifndef NDEBUG if (m_map.size() > 0) fprintf(stderr, "Leak %d JS wrappers.\n", m_map.size()); +#endif } - #else - virtual ~WeakReferenceMap() { } - #endif // Get the JS wrapper object of an object. virtual v8::Persistent<ValueType> get(KeyType* obj) |
