summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/Src/CompressedBlob.cpp
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2009-08-03 22:51:13 +0000
committerShawn Hoffman <godisgovernment@gmail.com>2009-08-03 22:51:13 +0000
commit0cb7934d939f9a02d4784906f8d3a011e524fa30 (patch)
tree37fdf83f55336f6bc53603ccd4d4fa04e5fad2be /Source/Core/DiscIO/Src/CompressedBlob.cpp
parent3ac6b08456971292f6e438765568f68b7c3e2e03 (diff)
fix some memleaks in DiscIO. Fix for issue 1238.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3936 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DiscIO/Src/CompressedBlob.cpp')
-rw-r--r--Source/Core/DiscIO/Src/CompressedBlob.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/Src/CompressedBlob.cpp b/Source/Core/DiscIO/Src/CompressedBlob.cpp
index 14b686fd46..1866f7a789 100644
--- a/Source/Core/DiscIO/Src/CompressedBlob.cpp
+++ b/Source/Core/DiscIO/Src/CompressedBlob.cpp
@@ -227,7 +227,7 @@ bool CompressFileToBlob(const char* infile, const char* outfile, u32 sub_type,
offsets[i] = position;
// u64 start = i * header.block_size;
// u64 size = header.block_size;
- memset(in_buf, 0, header.block_size);
+ std::fill(in_buf, in_buf + header.block_size, 0);
fread(in_buf, header.block_size, 1, inf);
z_stream z;
memset(&z, 0, sizeof(z));