diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2011-03-22 07:27:23 +0000 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2011-03-22 07:27:23 +0000 |
| commit | f8620fcd0b4dcc6006a6a228cd5cc79cc82a83fc (patch) | |
| tree | 0bd19b701ebf689d0f07719816d59c6391e7eb29 /Source/Core/Common/Src/FileUtil.cpp | |
| parent | 017735b9ffdc7305f07b461a100f62c1d2fbe9ef (diff) | |
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
Diffstat (limited to 'Source/Core/Common/Src/FileUtil.cpp')
| -rw-r--r-- | Source/Core/Common/Src/FileUtil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
