From f8620fcd0b4dcc6006a6a228cd5cc79cc82a83fc Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Tue, 22 Mar 2011 07:27:23 +0000 Subject: Fixed some memory leaks. Only one was mine ;P git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7392 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/FileUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/Common/Src/FileUtil.cpp') diff --git a/Source/Core/Common/Src/FileUtil.cpp b/Source/Core/Common/Src/FileUtil.cpp index 969ba9f948..bbfc03f2fa 100644 --- a/Source/Core/Common/Src/FileUtil.cpp +++ b/Source/Core/Common/Src/FileUtil.cpp @@ -677,7 +677,7 @@ bool WriteStringToFile(bool text_file, const std::string &str, const char *filen if (!f) return false; size_t len = str.size(); - if (len != fwrite(str.data(), 1, str.size(), f)) + if (len != fwrite(str.data(), 1, str.size(), f)) // TODO: string::data() may not be contiguous { fclose(f); return false; -- cgit v1.2.3