From ae6cac7339b7157454df106a01928bf71e367874 Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Mon, 10 May 2010 08:06:07 -0500 Subject: [PATCH] no need to hang a reference to the V8 module --- ext/v8/v8.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/ext/v8/v8.cpp b/ext/v8/v8.cpp index d52fc6e..b601402 100644 --- a/ext/v8/v8.cpp +++ b/ext/v8/v8.cpp @@ -11,21 +11,14 @@ #include extern "C" { - /** - * ruby init method for the extension - */ void Init_v8(); } VALUE rb_mModule; extern "C" { - void Init_v8() { - - rb_mModule = rb_define_module("V8"); - - V8_To = rb_define_module_under(rb_mModule, "To"); - + void Init_v8() { + V8_To = rb_define_module_under(rb_define_module("V8"), "To"); rr_init_cxt(); rr_init_str(); rr_init_script();