]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - wtf/OwnFastMallocPtr.h
JavaScriptCore-721.26.tar.gz
[apple/javascriptcore.git] / wtf / OwnFastMallocPtr.h
index c88235a8a9407ce780f045bba1e227a72ef8b83f..8b6cbf45e7acd24831843d1c734266b985407ea9 100644 (file)
@@ -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; }