Index: src/JsValue.cpp |
=================================================================== |
--- a/src/JsValue.cpp |
+++ b/src/JsValue.cpp |
@@ -21,16 +21,17 @@ AdblockPlus::JsValue::JsValue(AdblockPlu |
v8::Handle<v8::Value> value) |
: jsEngine(jsEngine), |
value(v8::Persistent<v8::Value>::New(jsEngine.isolate, value)) |
{ |
} |
AdblockPlus::JsValue::~JsValue() |
{ |
+ const JsEngine::Context context(jsEngine); |
value.Dispose(jsEngine.isolate); |
} |
bool AdblockPlus::JsValue::IsUndefined() const |
{ |
const JsEngine::Context context(jsEngine); |
return value->IsUndefined(); |
} |