forked from enlightenment/efl
* eet: fix file corruption reported by Tiago Falcao <tiago@profusion.mobi>
Note: Do never call eet_flush2 if you don't actually fclose the file just after. SVN revision: 47832
This commit is contained in:
parent
d6f36ae575
commit
28759c1a67
|
@ -351,3 +351,7 @@
|
||||||
|
|
||||||
* Improve eet_eina_file_data_descriptor_class_set by using
|
* Improve eet_eina_file_data_descriptor_class_set by using
|
||||||
eina_hash_direct_add to avoid duplication hash key string.
|
eina_hash_direct_add to avoid duplication hash key string.
|
||||||
|
|
||||||
|
2010-04-08 Cedric BAIL
|
||||||
|
|
||||||
|
* Fix file corruption reported by Tiago Falcao <tiago@profusion.mobi>
|
||||||
|
|
|
@ -1463,7 +1463,6 @@ eet_open(const char *file, Eet_File_Mode mode)
|
||||||
ef = eet_cache_find((char *)file, eet_writers, eet_writers_num);
|
ef = eet_cache_find((char *)file, eet_writers, eet_writers_num);
|
||||||
if (ef)
|
if (ef)
|
||||||
{
|
{
|
||||||
eet_flush2(ef);
|
|
||||||
ef->references++;
|
ef->references++;
|
||||||
ef->delete_me_now = 1;
|
ef->delete_me_now = 1;
|
||||||
eet_internal_close(ef, EINA_TRUE);
|
eet_internal_close(ef, EINA_TRUE);
|
||||||
|
|
Loading…
Reference in New Issue