Decrement description counters in edje_collection_free_part_description_free

SVN revision: 50868
This commit is contained in:
Tiago Rezende Campos Falcao 2010-08-06 19:16:43 +00:00
parent 6df15533ee
commit a5f73d85c0
2 changed files with 3 additions and 16 deletions

View File

@ -2647,21 +2647,6 @@ edje_edit_state_del(Evas_Object *obj, const char *part, const char *state, doubl
break;
}
#define DEC_COUNT(Type) case EDJE_PART_TYPE_##Type: ce->count.Type--; break;
switch (rp->part->type)
{
DEC_COUNT(RECTANGLE);
DEC_COUNT(TEXT);
DEC_COUNT(IMAGE);
DEC_COUNT(SWALLOW);
DEC_COUNT(TEXTBLOCK);
DEC_COUNT(GROUP);
DEC_COUNT(BOX);
DEC_COUNT(TABLE);
DEC_COUNT(EXTERNAL);
}
_edje_collection_free_part_description_free(rp->part->type, pd, ce, 0);
}

View File

@ -1304,7 +1304,9 @@ _edje_collection_free_part_description_free(int type,
Eina_Bool free_strings)
{
#define FREE_POOL(Type, Ce, Desc) \
case EDJE_PART_TYPE_##Type: eina_mempool_free(Ce->mp.Type, Desc); break;
case EDJE_PART_TYPE_##Type: eina_mempool_free(Ce->mp.Type, Desc); \
ce->count.Type--; \
break;
_edje_collection_free_part_description_clean(type, desc, free_strings);