projects
/
platform
/
upstream
/
elementary.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9976ee5
)
elm_image no longer crashes when deleting the image from a download callback
author
Mike Blumenkrantz
<zmike@osg.samsung.com>
Thu, 9 Oct 2014 20:51:42 +0000
(16:51 -0400)
committer
Mike Blumenkrantz
<zmike@osg.samsung.com>
Thu, 9 Oct 2014 20:52:17 +0000
(16:52 -0400)
src/lib/elm_image.c
patch
|
blob
|
history
diff --git
a/src/lib/elm_image.c
b/src/lib/elm_image.c
index c57e6efc6549c79ce8ed87666310ac08ce8292a7..2e9b4184006279da36fd7b56eee7f00e15b75f77 100644
(file)
--- 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
_elm_image_smart_internal_file_set(obj, sd, _elm_url_get(url), f, sd->key, &ret);
eina_file_close(f);
+ sd->remote = NULL;
if (!ret)
{
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
evas_object_smart_callback_call(obj, SIG_DOWNLOAD_DONE, NULL);
}
- sd->remote = NULL;
ELM_SAFE_FREE(sd->key, eina_stringshare_del);
}