efl_ui/image_zoomable: fix internal eina file refcounting
authorMike Blumenkrantz <zmike@samsung.com>
Wed, 8 Aug 2018 06:56:02 +0000 (15:56 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Fri, 17 Aug 2018 04:14:34 +0000 (13:14 +0900)
commitde703fa173983e5dde1166b652b1d207bf6d31f5
treeb8a9bf048cb671e8cfbb8fc877dd58e05d385593
parent520b210b23227e72d74ab24cd4072daadc2d7180
efl_ui/image_zoomable: fix internal eina file refcounting

Summary:
this pointer is owned by elm_theme, not the image, so the image refcount
must be increased in order to avoid accidentally closing the file which is
still in use by elm_theme and triggering a crash

this resolves the crash in the `efl_ui_image_zoomable_icon` test

Reviewers: Hermet

Reviewed By: Hermet

Subscribers: #reviewers, cedric, #committers

Tags: #efl_widgets

Differential Revision: https://phab.enlightenment.org/D6774
src/lib/elementary/efl_ui_image_zoomable.c