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);