This commit is contained in:
ekibun
2021-01-27 11:50:25 +08:00
parent 3fdeca56a2
commit 01ea420bd7
7 changed files with 258 additions and 255 deletions

View File

@@ -80,7 +80,7 @@ class FlutterQjs {
case JSChannelType.FREE_OBJECT:
Pointer rt = ctx;
_DartObject obj = _DartObject.fromAddress(rt, ptr.address);
obj?.release();
obj?.free();
return Pointer.fromAddress(0);
}
throw JSError('call channel with wrong type');