Index: WebCore/dom/Document.cpp |
=================================================================== |
--- WebCore/dom/Document.cpp (revision 73160) |
+++ WebCore/dom/Document.cpp (working copy) |
@@ -1853,8 +1853,11 @@ |
{ |
// clear cache in top document |
if (m_axObjectCache) { |
- delete m_axObjectCache; |
+ // Clear the cache member variable before calling delete because attempts |
+ // are made to access it during destruction. |
+ AXObjectCache* axObjectCache = m_axObjectCache; |
m_axObjectCache = 0; |
+ delete axObjectCache; |
return; |
} |