From d51edf3bfa0d551a8dce39bc5bd272f339fb7ed7 Mon Sep 17 00:00:00 2001 From: rh101 Date: Mon, 26 Apr 2021 08:55:07 +1000 Subject: [PATCH] Remove unnecessary method call to close FileStream --- cocos/platform/CCFileUtils.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/cocos/platform/CCFileUtils.cpp b/cocos/platform/CCFileUtils.cpp index f4a47f81fe..8f51c34a24 100644 --- a/cocos/platform/CCFileUtils.cpp +++ b/cocos/platform/CCFileUtils.cpp @@ -507,7 +507,6 @@ bool FileUtils::writeBinaryToFile(const void* data, size_t dataSize, const std:: CC_BREAK_IF(!fileStream); fileStream->write(data, dataSize); - fileStream->close(); delete fileStream; return true; } while (0);