forked from enlightenment/efl
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:
parent
c059b12bf4
commit
34b8045d90
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue