elm_thumb: Delete ethumb object on smart_del in order to prevent the ethumb from...
authorStephen Houston <smhouston88@gmail.com>
Sun, 29 Dec 2013 17:24:54 +0000 (11:24 -0600)
committerStephen Houston <smhouston88@gmail.com>
Sun, 29 Dec 2013 17:34:35 +0000 (11:34 -0600)
src/lib/elm_thumb.c

index a3e3fd97937c8c01a53b63f17889eeefe9a80598..4a2c464245daafb7b8e0e638447b7a0d6d2980a6 100644 (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);