elm_theme: Check the ref count to delete or unref. 86/204686/2
authorWoochanlee <wc0917.lee@samsung.com>
Thu, 25 Apr 2019 12:19:35 +0000 (21:19 +0900)
committerJaehyun Cho <jae_hyun.cho@samsung.com>
Thu, 25 Apr 2019 12:24:37 +0000 (12:24 +0000)
commitedbb3802dcdf9b0d4d72ed6fec506611f7a59146
tree988c7f8dae73079d1cbdfe51756ffac1a11c4d62
parentabdf9f88725ffb7084bf5216d9563003548007c6
elm_theme: Check the ref count to delete or unref.

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

https://phab.enlightenment.org/D8714
e25f00c2d5d98854b1ddab5d9d3b34ce63766db3

Change-Id: Ifcbcd40ece56f8b466fbb3e00b1344a000f55ca8
src/lib/elementary/elm_theme.c