--- a/webengine/osswebengine/JavaScriptCore/kjs/identifier.cpp Fri May 08 08:25:06 2009 +0300
+++ b/webengine/osswebengine/JavaScriptCore/kjs/identifier.cpp Fri Jul 03 15:54:40 2009 +0100
@@ -51,6 +51,17 @@
typedef HashSet<UString::Rep *> IdentifierTable;
static IdentifierTable *table;
+struct cleanupIdentifier {
+ ~cleanupIdentifier() {
+ if( table ) {
+ table->clear();
+ delete table;
+ table=0;
+ }
+ }
+};
+static cleanupIdentifier cleanIdentifier;
+
static inline IdentifierTable& identifierTable()
{
ASSERT(JSLock::lockCount() > 0);