summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore/wtf/OwnFastMallocPtr.h
diff options
context:
space:
mode:
Diffstat (limited to 'JavaScriptCore/wtf/OwnFastMallocPtr.h')
-rw-r--r--JavaScriptCore/wtf/OwnFastMallocPtr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/JavaScriptCore/wtf/OwnFastMallocPtr.h b/JavaScriptCore/wtf/OwnFastMallocPtr.h
index c88235a..8b6cbf4 100644
--- a/JavaScriptCore/wtf/OwnFastMallocPtr.h
+++ b/JavaScriptCore/wtf/OwnFastMallocPtr.h
@@ -35,7 +35,7 @@ namespace WTF {
~OwnFastMallocPtr()
{
- fastFree(m_ptr);
+ fastFree(const_cast<void*>(static_cast<const void*>(const_cast<const T*>(m_ptr))));
}
T* get() const { return m_ptr; }