From 43341e77dc36507c08917c66eee5bf0203ae3c60 Mon Sep 17 00:00:00 2001 From: cedric Date: Thu, 8 Apr 2010 14:04:22 +0000 Subject: [PATCH] * eet: fix file corruption reported by Tiago Falcao Note: Do never call eet_flush2 if you don't actually fclose the file just after. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eet@47832 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- ChangeLog | 4 ++++ src/lib/eet_lib.c | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 70b6e82..fb3d310 100644 --- a/ChangeLog +++ b/ChangeLog @@ -351,3 +351,7 @@ * Improve eet_eina_file_data_descriptor_class_set by using eina_hash_direct_add to avoid duplication hash key string. + +2010-04-08 Cedric BAIL + + * Fix file corruption reported by Tiago Falcao diff --git a/src/lib/eet_lib.c b/src/lib/eet_lib.c index f237d4b..884fc4c 100644 --- a/src/lib/eet_lib.c +++ b/src/lib/eet_lib.c @@ -1463,7 +1463,6 @@ eet_open(const char *file, Eet_File_Mode mode) ef = eet_cache_find((char *)file, eet_writers, eet_writers_num); if (ef) { - eet_flush2(ef); ef->references++; ef->delete_me_now = 1; eet_internal_close(ef, EINA_TRUE); -- 2.7.4