fscript do not manage the obj refcount any longer

This commit is contained in:
lixianjing 2022-12-28 17:42:47 +08:00
parent fa48c39f3d
commit 85ca90a5d5
2 changed files with 1 additions and 5 deletions

View File

@ -3,6 +3,7 @@
2022/12/28
* list\_view\_h控件新添加x\_margin与y\_margin属性可以设置列表项的边距(感谢泽武提供补丁)
* 修复combo box坐标计算错误(感谢雨欣提供补丁)
* fscript 不再管obj的引用计数(感谢兆坤提供补丁)
2022/12/26
* 修复绑定slide\_indicator的value时slide\_view没有改变当前页的问题(感谢兆坤提供补丁)。

View File

@ -921,7 +921,6 @@ ret_t fscript_clean(fscript_t* fscript) {
static ret_t fscript_reset(fscript_t* fscript) {
return_value_if_fail(fscript != NULL, RET_FAIL);
TK_OBJECT_UNREF(fscript->obj);
fscript_hook_on_deinit(fscript);
fscript_clean(fscript);
@ -2129,10 +2128,6 @@ static fscript_t* fscript_load(fscript_t* fscript, tk_object_t* obj, const char*
}
fscript_parser_error_deinit(&error);
if (fscript != NULL) {
TK_OBJECT_REF(obj);
}
return fscript;
}