summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2009-08-01 17:51:17 +0000
committerShawn Hoffman <godisgovernment@gmail.com>2009-08-01 17:51:17 +0000
commit1493c2ba9cc654657ed018fb525a4d3b0b2ad2bf (patch)
treec29eb35bfd292c4204b2fed059e6673f0ab9fcf1 /Source/Core/DiscIO
parentdedb2a5fcc3c32137413604b58ef66f251ff51ab (diff)
fix some memleaks in NANDContentLoader.cpp and ISOProperties.cpp
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3919 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DiscIO')
-rw-r--r--Source/Core/DiscIO/Src/DiscScrubber.cpp2
-rw-r--r--Source/Core/DiscIO/Src/NANDContentLoader.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/Src/DiscScrubber.cpp b/Source/Core/DiscIO/Src/DiscScrubber.cpp
index 8dd9c7cc23..f76f8a10ea 100644
--- a/Source/Core/DiscIO/Src/DiscScrubber.cpp
+++ b/Source/Core/DiscIO/Src/DiscScrubber.cpp
@@ -127,7 +127,7 @@ bool Scrub(const char* filename, CompressCB callback, void* arg)
// Warn if not DVD5 or DVD9 size
if (numClusters != 0x23048 && numClusters != 0x46090)
- WARN_LOG(DISCIO, "%s is not a standard sized wii m_Disc! (%x blocks)", filename, numClusters);
+ WARN_LOG(DISCIO, "%s is not a standard sized wii disc! (%x blocks)", filename, numClusters);
// Table of free blocks
m_FreeTable = new u8[numClusters];
diff --git a/Source/Core/DiscIO/Src/NANDContentLoader.cpp b/Source/Core/DiscIO/Src/NANDContentLoader.cpp
index fafb5358e3..eeda917b31 100644
--- a/Source/Core/DiscIO/Src/NANDContentLoader.cpp
+++ b/Source/Core/DiscIO/Src/NANDContentLoader.cpp
@@ -72,6 +72,7 @@ CSharedContent::CSharedContent()
m_Elements.push_back(Element);
}
}
+ fclose(pFile);
}
}