diff --git a/src/NodeApiJsiRuntime.cpp b/src/NodeApiJsiRuntime.cpp index 53f445b..d60f624 100644 --- a/src/NodeApiJsiRuntime.cpp +++ b/src/NodeApiJsiRuntime.cpp @@ -2178,6 +2178,7 @@ void NodeApiJsiRuntime::NodeApiRefCountedPointerValue::deleteStackValue( CHECK_ELSE_CRASH(value_, "value_ must not be null"); if (canBeDeletedFromStack_) { delete this; + return; } if (usedByJsiPointer() && ref_ == nullptr) {