evas - image unload - fix unload to only unload imgs needing it

need_unload seems to have been done wrong. using preload not
need_unload. no idea why it checked/cleared preload instead of
need_unload.
This commit is contained in:
Carsten Haitzler 2015-07-24 23:21:55 +09:00
parent 65ebf496fd
commit 5b1e3b3a89
1 changed files with 2 additions and 2 deletions

View File

@ -408,8 +408,8 @@ evas_common_rgba_pending_unloads_cleanup(void)
EAPI void
evas_common_rgba_pending_unloads_remove(Image_Entry *ie)
{
if (!ie->preload) return;
ie->preload = 0;
if (!ie->need_unload) return;
ie->need_unload = 0;
pending_unloads = eina_list_remove(pending_unloads, ie);
}