Update pocketpy.dart

up
This commit is contained in:
blueloveTH 2022-12-11 05:29:32 +08:00
parent 1a2153e5b4
commit 90f308642a
3 changed files with 5 additions and 5 deletions

View File

@ -25,6 +25,6 @@ The initial version. Hello, world!
+ Add `math.isnan` and `math.isinf`
+ Fix a bug of `__checkType`
## 0.5.0+2
## 0.5.0+3
+ Fix a bug on Windows

View File

@ -101,7 +101,7 @@ class VM {
var ret = _Bindings.pkpy_vm_eval(pointer, _Str(source).p);
if (ret == ffi.nullptr) return null;
String s = ret.toDartString();
calloc.free(ret);
_Bindings.pkpy_delete(ret);
return s;
}
@ -118,7 +118,7 @@ class VM {
var ret = _Bindings.pkpy_vm_get_global(pointer, _Str(name).p);
if (ret == ffi.nullptr) return null;
String s = ret.toDartString();
calloc.free(ret);
_Bindings.pkpy_delete(ret);
return s;
}
@ -142,7 +142,7 @@ class ThreadedVM extends VM {
var ret = _Bindings.pkpy_tvm_read_jsonrpc_request(pointer);
if (ret == ffi.nullptr) return null;
String s = ret.toDartString();
calloc.free(ret);
_Bindings.pkpy_delete(ret);
return s;
}

View File

@ -1,6 +1,6 @@
name: pocketpy
description: A lightweight Python interpreter for game engines.
version: 0.5.0+2
version: 0.5.0+3
homepage: https://pocketpy.dev
repository: https://github.com/blueloveth/pocketpy