Reviewed by Mark Rowe.
- fix http://bugs.webkit.org/show_bug.cgi?id=16375
REGRESSION: Safari crashes on quit
Probably a debug-only issue.
* kjs/Parser.cpp:
(KJS::parser): Create the parser and never destroy it by using a pointer instead
of a global object.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28580
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-12-10 Darin Adler <darin@apple.com>
+
+ Reviewed by Mark Rowe.
+
+ - fix http://bugs.webkit.org/show_bug.cgi?id=16375
+ REGRESSION: Safari crashes on quit
+
+ Probably a debug-only issue.
+
+ * kjs/Parser.cpp:
+ (KJS::parser): Create the parser and never destroy it by using a pointer instead
+ of a global object.
+
2007-12-09 Darin Adler <darin@apple.com>
Reviewed by Sam Weinig.
{
ASSERT(JSLock::currentThreadIsHoldingLock());
- static Parser staticParser;
+ static Parser& staticParser = *new Parser;
return staticParser;
}