File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,11 @@ JavascriptExternal::JavascriptExternal(System::Object^ iObject)
59
59
JavascriptExternal::~JavascriptExternal ()
60
60
{
61
61
mObjectHandle .Free ();
62
- if (mPersistent .IsEmpty ())
63
- return ;
64
- mPersistent .ClearWeak <void >();
65
- mPersistent .Reset ();
62
+ if (!mPersistent .IsEmpty ()) {
63
+ mPersistent .ClearWeak <void >();
64
+ mPersistent .Reset ();
65
+ }
66
+
66
67
}
67
68
68
69
// //////////////////////////////////////////////////////////////////////////////////////////////////
@@ -401,4 +402,4 @@ void JavascriptExternal::IteratorNextCallback(const v8::FunctionCallbackInfo<Val
401
402
402
403
} } // namespace Noesis::Javascript
403
404
404
- // //////////////////////////////////////////////////////////////////////////////////////////////////
405
+ // //////////////////////////////////////////////////////////////////////////////////////////////////
You can’t perform that action at this time.
0 commit comments