From bde54b0e16a2c19a66ba68a20197352ee043221d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C3=ABl=20Bouchaud=20=28yoz=29?= Date: Tue, 10 Sep 2013 12:52:11 +0200 Subject: [PATCH] elementary: del image_preload signal callback on elm_thumb when needed --- legacy/elementary/src/lib/elm_thumb.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/legacy/elementary/src/lib/elm_thumb.c b/legacy/elementary/src/lib/elm_thumb.c index 769f399..7ab8cac 100644 --- a/legacy/elementary/src/lib/elm_thumb.c +++ b/legacy/elementary/src/lib/elm_thumb.c @@ -348,6 +348,9 @@ _on_ethumb_thumb_error(Ethumb_Client *client __UNUSED__, ERR("Something odd happened with a thumbnail request"); return; } + evas_object_event_callback_del_full + (sd->view, EVAS_CALLBACK_IMAGE_PRELOADED, _on_thumb_preloaded, + sd); pending_request--; sd->thumb.request = NULL; @@ -632,6 +635,9 @@ _elm_thumb_smart_del(Eo *obj, void *_pd, va_list *list EINA_UNUSED) eo_data_unref(sd->obj, sd); sd->thumb.retry = EINA_FALSE; } + evas_object_event_callback_del_full + (sd->view, EVAS_CALLBACK_IMAGE_PRELOADED, _on_thumb_preloaded, + sd); eina_stringshare_del(sd->thumb.thumb_path); eina_stringshare_del(sd->thumb.thumb_key); -- 2.7.4