diff --git a/v8_cxt.cpp b/v8_cxt.cpp index 20597bb..29113fe 100644 --- a/v8_cxt.cpp +++ b/v8_cxt.cpp @@ -12,7 +12,7 @@ v8_cxt::v8_cxt() : v8_ref(Context::New()) { VALUE v8_cxt_allocate(VALUE clazz) { printf("This is the big leagues chew!\n"); v8_cxt* cxt = new v8_cxt(); - return Data_Wrap_Struct(clazz, 0, 0, cxt); + return Data_Wrap_Struct(clazz, v8_ref_mark , v8_ref_free, cxt); } diff --git a/v8_ref.h b/v8_ref.h index ce4b25e..b6d8ab6 100644 --- a/v8_ref.h +++ b/v8_ref.h @@ -16,7 +16,7 @@ class v8_ref_data { template class v8_ref : v8_ref_data { public: //takes a handle object and adds a new persistent handle for - //the referenced object. + //the referenced object v8_ref(v8::Handle object); ~v8_ref(); private: