1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-21 06:53:01 +08:00

lv_table: fix memory leak when deleted (#1178)

This commit is contained in:
embeddedt 2019-08-21 09:53:55 -04:00 committed by GitHub
parent 941409f3f9
commit 94c95bc9e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -752,6 +752,8 @@ static lv_res_t lv_table_signal(lv_obj_t * table, lv_signal_t sign, void * param
ext->cell_data[cell] = NULL;
}
}
if(ext->cell_data != NULL)
lv_mem_free(ext->cell_data);
} else if(sign == LV_SIGNAL_GET_TYPE) {
lv_obj_type_t * buf = param;
uint8_t i;