forked from enlightenment/efl
eina: allow eina_file_close(NULL) to simplify code using Eina_File.
This commit is contained in:
parent
699a97875a
commit
4ccc5d4f68
|
@ -508,7 +508,7 @@ eina_file_clean_close(Eina_File *file)
|
|||
|
||||
// Final death
|
||||
EINA_MAGIC_SET(file, 0);
|
||||
free(file);
|
||||
free(file);
|
||||
}
|
||||
|
||||
EAPI void
|
||||
|
@ -518,8 +518,7 @@ eina_file_close(Eina_File *file)
|
|||
unsigned int length;
|
||||
unsigned int key;
|
||||
|
||||
EINA_FILE_MAGIC_CHECK(file);
|
||||
|
||||
if (!file) return ;
|
||||
eina_lock_take(&_eina_file_lock_cache);
|
||||
|
||||
eina_lock_take(&file->lock);
|
||||
|
|
Loading…
Reference in New Issue