fix invalid memory access where child cb frees table cache - new it seems

i havent seen this before so i would not cal lit an old bug that needs
a fix tag
This commit is contained in:
Carsten Haitzler 2014-04-10 16:44:58 +09:00
parent f921af0cb5
commit 059aba7c37
1 changed files with 9 additions and 6 deletions

View File

@ -861,13 +861,16 @@ _evas_object_table_calculate_layout_regular(Evas_Object *o, Evas_Table_Data *pri
}
end:
if (cols != c->sizes.h)
if (priv->cache)
{
if (cols) free(cols);
}
if (rows != c->sizes.v)
{
if (rows) free(rows);
if (cols != c->sizes.h)
{
if (cols) free(cols);
}
if (rows != c->sizes.v)
{
if (rows) free(rows);
}
}
}