elm_theme: Check the ref count to delete or unref.
authorWoochanlee <wc0917.lee@samsung.com>
Thu, 25 Apr 2019 12:24:42 +0000 (21:24 +0900)
committerWoochanlee <wc0917.lee@samsung.com>
Tue, 30 Apr 2019 00:55:18 +0000 (09:55 +0900)
commit984dab94678efff2df3105697321b283a56797d4
treea68cfdb11952ba708fe84449e1454cf35e334795
parent039281e5c38b9b3ddb77d0a320c219b66600f1a5
elm_theme: Check the ref count to delete or unref.

Summary:
In case of the ref count bigger than 1.
That means the eo_theme ref count is 2.

In that case we need to call efl_unref when theme freed.
other case we can delete eo_theme.

@fix

Reviewers: Jaehyun_Cho, woohyun, Hermet

Reviewed By: Jaehyun_Cho

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8714