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.
This commit is contained in:
Jean-Philippe Andre 2014-01-17 18:07:33 +09:00
parent c059b12bf4
commit 34b8045d90
1 changed files with 4 additions and 1 deletions

View File

@ -723,7 +723,10 @@ _image_opened_cb(void *data, const void *msg_received, int size)
else
ERR("Invalid message type received: %d (%s)", answer->type, __FUNCTION__);
EINA_REFCOUNT_UNREF(fentry)
eina_hash_del(_file_entries, fentry->hkey, fentry);
{
eina_hash_del(_file_entries, fentry->hkey, fentry);
ie->data1 = NULL;
}
return EINA_TRUE;
}