elm_thumb: Delete ethumb object on smart_del in order to prevent the ethumb from being left as an artifact after the elm_thumb has been deleted.

This commit is contained in:
Stephen Houston 2013-12-29 11:24:54 -06:00
parent 4b8aff3558
commit 6c3e99c0a5
1 changed files with 6 additions and 0 deletions

View File

@ -580,6 +580,12 @@ _elm_thumb_smart_del(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
(sd->view, EVAS_CALLBACK_IMAGE_PRELOADED, _on_thumb_preloaded,
sd);
if (sd->view)
{
evas_object_del(sd->view);
sd->view = NULL;
}
eina_stringshare_del(sd->thumb.thumb_path);
eina_stringshare_del(sd->thumb.thumb_key);