evas/render2: Fix check to drop previous map from cache.

SVN revision: 76551
This commit is contained in:
Rafael Antognolli 2012-09-12 18:36:15 +00:00
parent 94732fddd9
commit ce85aa2b48
1 changed files with 8 additions and 2 deletions

View File

@ -43,8 +43,14 @@ evas_object_change_reset(Evas_Object *obj)
void
evas_object_cur_prev(Evas_Object *obj)
{
if (!obj->prev.valid_map && (obj->prev.map == obj->cur.map))
obj->prev.map = NULL;
if (!obj->prev.valid_map)
{
if (obj->prev.map != obj->cur.map)
evas_map_free(obj->prev.map);
if (obj->cache_map == obj->prev.map)
obj->cache_map = NULL;
obj->prev.map = NULL;
}
if (obj->cur.map != obj->prev.map)
{