Skip to content

Commit d3eecf2

Browse files
authored
fix: Do not prematurely release blocks (#81) (#83)
1 parent 3f66285 commit d3eecf2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

NativeScript/runtime/Interop.mm

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,6 @@
347347
MethodCallbackWrapper* userData = new MethodCallbackWrapper(isolate, poCallback, 1, argsCount, blockTypeEncoding);
348348
blockPtr = Interop::CreateBlock(1, argsCount, blockTypeEncoding, ArgConverter::MethodCallback, userData);
349349

350-
[(id)blockPtr autorelease];
351-
352350
BlockWrapper* wrapper = new BlockWrapper((void*)blockPtr, blockTypeEncoding);
353351
tns::SetValue(isolate, arg.As<v8::Function>(), wrapper);
354352
}

0 commit comments

Comments
 (0)