table: fix typo

This commit is contained in:
Gabor Kiss-Vamosi
2020-08-14 06:43:14 +02:00
parent de1ccc269c
commit c8cc9db7f0

View File

@@ -195,7 +195,7 @@ void lv_table_set_row_cnt(lv_obj_t * table, uint16_t row_cnt)
if(ext->row_cnt > 0) {
ext->row_h = lv_mem_realloc(ext->row_h, ext->row_cnt * sizeof(ext->row_h[0]));
LV_ASSERT_MEM(ext->row_h);
if(ext->cell_data == NULL) return;
if(ext->row_h == NULL) return;
} else {
lv_mem_free(ext->row_h);
ext->row_h = NULL;