summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2014-10-09 16:51:42 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2014-10-09 16:52:17 -0400
commitcde012d2a03719d35f1c9283d6185866448b6da8 (patch)
treefc2bf04e6ca91925e1e5aeb2b3a728184419d62b
parent9976ee52a0f3c857e913b420a16f5718b36ed177 (diff)
elm_image no longer crashes when deleting the image from a download callback
-rw-r--r--src/lib/elm_image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elm_image.c b/src/lib/elm_image.c
index c57e6efc6..2e9b41840 100644
--- a/src/lib/elm_image.c
+++ b/src/lib/elm_image.c
@@ -832,6 +832,7 @@ _elm_image_smart_download_done(void *data, Elm_Url *url EINA_UNUSED, Eina_Binbuf
832 _elm_image_smart_internal_file_set(obj, sd, _elm_url_get(url), f, sd->key, &ret); 832 _elm_image_smart_internal_file_set(obj, sd, _elm_url_get(url), f, sd->key, &ret);
833 eina_file_close(f); 833 eina_file_close(f);
834 834
835 sd->remote = NULL;
835 if (!ret) 836 if (!ret)
836 { 837 {
837 Elm_Image_Error err = { 0, EINA_TRUE }; 838 Elm_Image_Error err = { 0, EINA_TRUE };
@@ -851,7 +852,6 @@ _elm_image_smart_download_done(void *data, Elm_Url *url EINA_UNUSED, Eina_Binbuf
851 evas_object_smart_callback_call(obj, SIG_DOWNLOAD_DONE, NULL); 852 evas_object_smart_callback_call(obj, SIG_DOWNLOAD_DONE, NULL);
852 } 853 }
853 854
854 sd->remote = NULL;
855 ELM_SAFE_FREE(sd->key, eina_stringshare_del); 855 ELM_SAFE_FREE(sd->key, eina_stringshare_del);
856} 856}
857 857