summaryrefslogtreecommitdiff
path: root/src/lib/evas/cserve2
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-01-17 18:07:33 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-01-17 19:00:54 +0900
commit34b8045d902d808716152d36b5d7c91f3dd058ae (patch)
tree96a9bf5b435300590097f0ac220ce72b6dddd517 /src/lib/evas/cserve2
parentc059b12bf4fe53a5f604bcb68183389d8fc6ec09 (diff)
Evas cserve2: Fix invalid memory access
In case of load error, we free the file entry, but forgot to reset the pointer to it in the image entry.
Diffstat (limited to 'src/lib/evas/cserve2')
-rw-r--r--src/lib/evas/cserve2/evas_cs2_client.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/evas/cserve2/evas_cs2_client.c b/src/lib/evas/cserve2/evas_cs2_client.c
index 4917fb2811..3591d22914 100644
--- a/src/lib/evas/cserve2/evas_cs2_client.c
+++ b/src/lib/evas/cserve2/evas_cs2_client.c
@@ -723,7 +723,10 @@ _image_opened_cb(void *data, const void *msg_received, int size)
723 else 723 else
724 ERR("Invalid message type received: %d (%s)", answer->type, __FUNCTION__); 724 ERR("Invalid message type received: %d (%s)", answer->type, __FUNCTION__);
725 EINA_REFCOUNT_UNREF(fentry) 725 EINA_REFCOUNT_UNREF(fentry)
726 eina_hash_del(_file_entries, fentry->hkey, fentry); 726 {
727 eina_hash_del(_file_entries, fentry->hkey, fentry);
728 ie->data1 = NULL;
729 }
727 return EINA_TRUE; 730 return EINA_TRUE;
728 } 731 }
729 732