Skip to content

Commit b68f454

Browse files
committed
fix: bridge release adapters
1 parent 1050b75 commit b68f454

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

NativeScript/runtime/Interop.mm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -591,16 +591,16 @@ inline bool isBool() {
591591
if ((obj->IsArrayBuffer() || obj->IsArrayBufferView()) && !isNSArray) {
592592
Local<ArrayBuffer> buffer = arg.As<ArrayBuffer>();
593593
NSDataAdapter* adapter = [[NSDataAdapter alloc] initWithJSObject:buffer isolate:isolate];
594-
Interop::SetValue(dest, adapter);
594+
Interop::SetValue(dest, CFBridgingRelease(adapter));
595595
// CFAutorelease(adapter);
596596
} else if (tns::IsArrayOrArrayLike(isolate, obj)) {
597597
Local<v8::Array> array = Interop::ToArray(obj);
598598
ArrayAdapter* adapter = [[ArrayAdapter alloc] initWithJSObject:array isolate:isolate];
599-
Interop::SetValue(dest, adapter);
599+
Interop::SetValue(dest, CFBridgingRelease(adapter));
600600
// CFAutorelease(adapter);
601601
} else {
602602
DictionaryAdapter* adapter = [[DictionaryAdapter alloc] initWithJSObject:obj isolate:isolate];
603-
Interop::SetValue(dest, adapter);
603+
Interop::SetValue(dest, CFBridgingRelease(adapter));
604604
// CFAutorelease(adapter);
605605
}
606606
} else {

0 commit comments

Comments
 (0)