webengine/osswebengine/DerivedSources/WebCore/HTMLNames.cpp
changeset 11 c8a366e56285
parent 10 a359256acfc6
--- a/webengine/osswebengine/DerivedSources/WebCore/HTMLNames.cpp	Thu Aug 27 07:44:59 2009 +0300
+++ b/webengine/osswebengine/DerivedSources/WebCore/HTMLNames.cpp	Thu Sep 24 12:53:48 2009 +0300
@@ -1247,9 +1247,11 @@
     new ((void*)&widthAttr) QualifiedName(nullAtom, widthAttrString, nullAtom);
     new ((void*)&wrapAttr) QualifiedName(nullAtom, wrapAttrString, nullAtom);
 }
+struct cleanupHtmlNames  {
+    ~cleanupHtmlNames() {
+    // This will destroy the AtomicString table
+    // All other atomic string destruction must be done before this call
 
-void remove()
-{
 #ifndef __WINSCW__
     if( initialized ) {
         size_t num(0);
@@ -1563,10 +1565,12 @@
     widthAttrString = "";
     wrapAttrString = "";
 
-	AtomicString::remove();
+    AtomicString::remove();
 
-	initialized = false;
-} //remove()
+    initialized = false;
+    } 
+};
+struct cleanupHtmlNames htmlNames;
 
 } //HTMLNames