Index: include/AdblockPlus/V8ValueHolder.h |
=================================================================== |
--- a/include/AdblockPlus/V8ValueHolder.h |
+++ b/include/AdblockPlus/V8ValueHolder.h |
@@ -51,11 +51,7 @@ |
} |
~V8ValueHolder() |
{ |
- if (this->value.get()) |
- { |
- this->value->Dispose(this->isolate); |
- this->value.reset(0); |
- } |
+ reset(isolate, v8::Persistent<T>()); |
Wladimir Palant
2014/07/02 09:35:12
I don't get it, with this change the code seems to
|
} |
void reset(v8::Isolate* isolate, v8::Persistent<T> value) |
{ |