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

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;