forked from enlightenment/efl
emile: unmap the memory for image file after decode.
Summary: In case of emile, unmap the memory of the image file when the image file is closing. But closing of image file happen when the image is flushed from the cache, so the mapped memory of image file remain for long period of time with no benefit (If it is in cache, it won't get decoded again). So I think we don't need to keep the mapped memory of image file. Test Plan: self Reviewers: cedric, jpeg, jypark Reviewed By: cedric Differential Revision: https://phab.enlightenment.org/D5210 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
1ac4a03d4f
commit
d23aca3c8e
|
@ -680,6 +680,7 @@ _emile_tgv_data(Emile_Image *image,
|
|||
|
||||
on_error:
|
||||
if (image->compress) eina_binbuf_free(buffer);
|
||||
_emile_image_file_source_unmap(image);
|
||||
return r;
|
||||
}
|
||||
|
||||
|
@ -2325,6 +2326,7 @@ done:
|
|||
|
||||
jpeg_destroy_decompress(&cinfo);
|
||||
_emile_jpeg_membuf_src_term(&cinfo);
|
||||
_emile_image_file_source_unmap(image);
|
||||
return r;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue