| Index: src/extensions/gc-extension.cc
|
| diff --git a/src/extensions/gc-extension.cc b/src/extensions/gc-extension.cc
|
| index 238e305f3db712cbbb748dcec385077253b5516f..54c8cdc0c80bf0ac57fb78c19868f7c90c7fa45b 100644
|
| --- a/src/extensions/gc-extension.cc
|
| +++ b/src/extensions/gc-extension.cc
|
| @@ -46,7 +46,8 @@ v8::Handle<v8::Value> GCExtension::GC(const v8::Arguments& args) {
|
|
|
|
|
| void GCExtension::Register() {
|
| - static GCExtension* gc_extension = ::new GCExtension();
|
| + static GCExtension* gc_extension = NULL;
|
| + if (gc_extension == NULL) gc_extension = new GCExtension();
|
| static v8::DeclareExtension gc_extension_declaration(gc_extension);
|
| }
|
|
|
|
|