Skip to content

Commit 0e34275

Browse files
committed
1、修复Function对象invoke时导致脚本终止执行问题。
2、修复iOS中Object释放时崩溃问题。 3、优化内存使用,修复内存泄露问题。
1 parent 120350c commit 0e34275

25 files changed

Lines changed: 185 additions & 101 deletions

File tree

Sample/Android/app/src/main/java/cn/vimfung/luascriptcore/sample/MainActivity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ public void onClick(View v) {
196196
}
197197

198198
_luaContext.evalScript("local person = Person.create(); person:setName('vimfung'); print(person:name()); person:speak(); person:walk();");
199-
200199
}
201200
});
202201
}
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
4 KB
Binary file not shown.
0 Bytes
Binary file not shown.

Sample/iOS_OSX/Common/LSCTPerson.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#import "LSCTPerson.h"
1010
#import "LSCValue.h"
11+
#import "LSCFunction.h"
1112

1213
@interface LSCTPerson ()
1314

Sample/iOS_OSX/LuaScript/test.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
local person = LSCTPerson.create();
2+
person:setName('vimfung');
3+
person:walk();
4+
person:speak();

0 commit comments

Comments
 (0)