emile: unmap the memory for image file after decode.
authorjiin.moon <jiin.moon@samsung.com>
Wed, 27 Sep 2017 18:51:44 +0000 (11:51 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Wed, 27 Sep 2017 18:51:50 +0000 (11:51 -0700)
commitd23aca3c8ec60b8db68511ff484b85edadd2f9aa
treee362b8010952a5395be27b9dc268e6a0a8e34fac
parent1ac4a03d4fbef8ada70a491d15174c8ad93752ef
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>
src/lib/emile/emile_image.c