Index: src/extensions/externalize-string-extension.cc |
diff --git a/src/extensions/externalize-string-extension.cc b/src/extensions/externalize-string-extension.cc |
index 9fbf3298189acdace28f175af3f855b5ae13bd68..50d876136f2d08514eb446ccf6ac4652ed68d384 100644 |
--- a/src/extensions/externalize-string-extension.cc |
+++ b/src/extensions/externalize-string-extension.cc |
@@ -133,11 +133,8 @@ v8::Handle<v8::Value> ExternalizeStringExtension::IsAscii( |
void ExternalizeStringExtension::Register() { |
- static ExternalizeStringExtension* externalize_extension = NULL; |
- if (externalize_extension == NULL) |
- externalize_extension = new ExternalizeStringExtension; |
- static v8::DeclareExtension externalize_extension_declaration( |
- externalize_extension); |
+ static ExternalizeStringExtension externalize_extension; |
+ static v8::DeclareExtension declaration(&externalize_extension); |
} |
} } // namespace v8::internal |