summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings
diff options
context:
space:
mode:
authorFeng Qian <fqian@google.com>2009-07-13 14:44:34 -0700
committerFeng Qian <fqian@google.com>2009-07-13 14:44:34 -0700
commit2350931596370d4cc9fc26d72039369d9fe72c9c (patch)
treecb751383716f871bf0c7ad0fda3880c553dd113d /WebCore/bindings
parent4452affb5ffe45d469043baa4fe40b716b7f5b91 (diff)
downloadexternal_webkit-2350931596370d4cc9fc26d72039369d9fe72c9c.zip
external_webkit-2350931596370d4cc9fc26d72039369d9fe72c9c.tar.gz
external_webkit-2350931596370d4cc9fc26d72039369d9fe72c9c.tar.bz2
Simplify Ben's previous commit.
I am going to submit the same patch to WebKit.
Diffstat (limited to 'WebCore/bindings')
-rw-r--r--WebCore/bindings/v8/V8DOMMap.h6
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)