forked from enlightenment/efl
evas - animated images. fix leak in not freeing the list of frames itself
This commit is contained in:
parent
9bb4c48691
commit
6c28aff7a0
|
@ -291,18 +291,15 @@ _evas_common_rgba_image_delete(Image_Entry *ie)
|
||||||
|
|
||||||
if (ie->animated.frames)
|
if (ie->animated.frames)
|
||||||
{
|
{
|
||||||
Eina_List *l;
|
|
||||||
Image_Entry_Frame *frame;
|
Image_Entry_Frame *frame;
|
||||||
EINA_LIST_FOREACH(ie->animated.frames, l, frame)
|
|
||||||
{
|
EINA_LIST_FREE(ie->animated.frames, frame)
|
||||||
if (frame)
|
|
||||||
{
|
{
|
||||||
if (frame->data) free(frame->data);
|
if (frame->data) free(frame->data);
|
||||||
if (frame->info) free(frame->info);
|
if (frame->info) free(frame->info);
|
||||||
free(frame);
|
free(frame);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
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);
|
free(im);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue