summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-01-14 13:42:17 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-01-14 14:23:05 +0900
commitdebbba47581c706dce600e28a8945f3b07925d62 (patch)
tree2e8ac176f344cdd74060fc60338543857264ff29 /src/bin
parent8fdd3992f0b4d37b23c2cc645c95f7721b446671 (diff)
Evas/cserve2: Fix potential crash in image_free
Don't try to free an object that was already freed. Basically, allow image_free(NULL).
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/evas/evas_cserve2_cache.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/evas/evas_cserve2_cache.c b/src/bin/evas/evas_cserve2_cache.c
index 77d1ce2a89..0c2a5bee73 100644
--- a/src/bin/evas/evas_cserve2_cache.c
+++ b/src/bin/evas/evas_cserve2_cache.c
@@ -1051,6 +1051,9 @@ _image_entry_free(Image_Entry *ientry)
1051 File_Entry *fentry; 1051 File_Entry *fentry;
1052 Image_Data *idata; 1052 Image_Data *idata;
1053 1053
1054 if (!ientry || !ENTRYID(ientry))
1055 return;
1056
1054 idata = _image_data_find(ENTRYID(ientry)); 1057 idata = _image_data_find(ENTRYID(ientry));
1055 if (!idata || !idata->refcount) 1058 if (!idata || !idata->refcount)
1056 { 1059 {