forked from enlightenment/efl
evas - use freeq for common and cache images
this makes software rgba images and cache images use freeq to try and minimize possible bugs and crashes if we hit use of freed data for images.
This commit is contained in:
parent
0014d0b99e
commit
8424c2b4a3
|
@ -139,7 +139,7 @@ _evas_cache_engine_image_dealloc(Evas_Cache_Engine_Image *cache, Engine_Image_En
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
memset(eim, 0, sizeof (Engine_Image_Entry));
|
memset(eim, 0, sizeof (Engine_Image_Entry));
|
||||||
free(eim);
|
eina_freeq_ptr_add(eina_freeq_main_get(), eim, free, sizeof(*eim));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -584,7 +584,7 @@ _evas_common_rgba_image_delete(Image_Entry *ie)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ie->f && !ie->flags.given_mmap) eina_file_close(ie->f);
|
if (ie->f && !ie->flags.given_mmap) eina_file_close(ie->f);
|
||||||
free(im);
|
eina_freeq_ptr_add(eina_freeq_main_get(), im, free, sizeof(*im));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue