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:34 -0400
commit4e9bde716e49ecae35eae89d4cf15a54a5ece95f (patch)
tree0d93f6e84a1d2cd468824fb5e19d6adad5c84c1c
parentd3cbdd1d72904d73d02c2c7ec4342dd2734b87cd (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 eb0ac6ab3..c3220b7ca 100644
--- a/src/lib/elm_image.c
+++ b/src/lib/elm_image.c
@@ -827,6 +827,7 @@ _elm_image_smart_download_done(void *data, Elm_Url *url EINA_UNUSED, Eina_Binbuf
827 _elm_image_smart_internal_file_set(obj, sd, _elm_url_get(url), f, sd->key, &ret); 827 _elm_image_smart_internal_file_set(obj, sd, _elm_url_get(url), f, sd->key, &ret);
828 eina_file_close(f); 828 eina_file_close(f);
829 829
830 sd->remote = NULL;
830 if (!ret) 831 if (!ret)
831 { 832 {
832 Elm_Image_Error err = { 0, EINA_TRUE }; 833 Elm_Image_Error err = { 0, EINA_TRUE };
@@ -846,7 +847,6 @@ _elm_image_smart_download_done(void *data, Elm_Url *url EINA_UNUSED, Eina_Binbuf
846 evas_object_smart_callback_call(obj, SIG_DOWNLOAD_DONE, NULL); 847 evas_object_smart_callback_call(obj, SIG_DOWNLOAD_DONE, NULL);
847 } 848 }
848 849
849 sd->remote = NULL;
850 ELM_SAFE_FREE(sd->key, eina_stringshare_del); 850 ELM_SAFE_FREE(sd->key, eina_stringshare_del);
851} 851}
852 852