1
0
Fork 0
mirror of https://github.com/rubyjs/therubyracer synced 2023-03-27 23:21:42 -04:00

no need to check if a handle is empty. dispose works either way

This commit is contained in:
Charles Lowell 2009-12-07 16:36:40 +02:00
parent 006e846e6a
commit adf98eeb57
2 changed files with 2 additions and 5 deletions

View file

@ -1,4 +1,4 @@
`make clean all`
`make all`
require 'v8';
#manually run a script

View file

@ -8,10 +8,7 @@ v8_ref::v8_ref(Handle<void> object) : handle(Persistent<void>::New(object)) {
}
v8_ref::~v8_ref() {
printf("Disposing of v8 reference\n");
if (!handle.IsEmpty()) {
handle.Dispose();
}
handle.Dispose();
}
void v8_ref_mark(v8_ref* ref) {