--- a/webengine/osswebengine/JavaScriptCore/kjs/CommonIdentifiers.cpp Fri May 08 08:25:06 2009 +0300
+++ b/webengine/osswebengine/JavaScriptCore/kjs/CommonIdentifiers.cpp Fri Jul 03 15:54:40 2009 +0100
@@ -34,9 +34,18 @@
{
}
+static CommonIdentifiers* sharedInstance=0;
+
+struct cleanupCommonIdentifiers {
+ ~cleanupCommonIdentifiers() {
+ delete sharedInstance;
+ sharedInstance=0;
+ }
+};
+struct cleanupCommonIdentifiers cleanupIdentifiers;
+
CommonIdentifiers* CommonIdentifiers::shared()
{
- static CommonIdentifiers* sharedInstance;
if (!sharedInstance) {
JSLock lock;
sharedInstance = new CommonIdentifiers;