fix widget_animator_manager_time_elapse use freed memory bug

This commit is contained in:
xianjimli 2018-12-19 11:37:59 +08:00
parent 4d2e3723a5
commit 6fef6fa29a
2 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,7 @@
* 2018/12/19
* 修改combobox弹出窗口位置的BUG。
* 修改widget\_animator\_manager中野指针的问题(感谢陈谭提供补丁)。
* 2018/12/18
* widget\_destroy自动判断是否需要异步销毁。

View File

@ -32,8 +32,10 @@ ret_t widget_animator_manager_time_elapse(widget_animator_manager_t* am, uint32_
iter = am->first;
while (iter != NULL) {
widget_animator_t* next = iter->next;
widget_animator_time_elapse(iter, delta_time);
iter = iter->next;
iter = next;
}
return RET_OK;