fix memory leak in progress circle

This commit is contained in:
xianjimli 2020-03-28 18:48:48 +08:00
parent 05bb3236a0
commit 25bbc5730c
2 changed files with 4 additions and 0 deletions

View File

@ -1,4 +1,7 @@
# 最新动态
* 2020/03/28
* 修改 progress circle中的内存泄露。
* 2020/03/27
* 完善 window\_base感谢尧燊提供补丁
* 完善 main\_loop\_sdl2感谢尧燊提供补丁

View File

@ -176,6 +176,7 @@ static ret_t progress_circle_on_destroy(widget_t* widget) {
return_value_if_fail(widget != NULL && progress_circle != NULL, RET_BAD_PARAMS);
TKMEM_FREE(progress_circle->unit);
TKMEM_FREE(progress_circle->line_cap);
return RET_OK;
}