diff options
| author | fires.gc <fires.gc@gmail.com> | 2009-02-28 01:48:37 +0000 |
|---|---|---|
| committer | fires.gc <fires.gc@gmail.com> | 2009-02-28 01:48:37 +0000 |
| commit | 0e9a49af7f98df9a3cf025868d3bcc479f41c5ca (patch) | |
| tree | cf4e8729514ee536882b354fe5d3d359d0b0684c /Source/Core/DiscIO/Src/NANDContentLoader.cpp | |
| parent | 4bdb4aa0d1c8520488583ba79c9f5ab6e5656eca (diff) | |
added destructor
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2460 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DiscIO/Src/NANDContentLoader.cpp')
| -rw-r--r-- | Source/Core/DiscIO/Src/NANDContentLoader.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/Src/NANDContentLoader.cpp b/Source/Core/DiscIO/Src/NANDContentLoader.cpp index 1ef32a892b..5ba850866c 100644 --- a/Source/Core/DiscIO/Src/NANDContentLoader.cpp +++ b/Source/Core/DiscIO/Src/NANDContentLoader.cpp @@ -62,7 +62,15 @@ CNANDContentLoader::CNANDContentLoader(const std::string& _rName) {
// _dbg_assert_msg_(BOOT, 0, "CNANDContentLoader loads neither folder nor file");
}
-
+}
+
+CNANDContentLoader::~CNANDContentLoader()
+{
+ for (size_t i=0; i<m_TileMetaContent.size(); i++)
+ {
+ delete [] m_TileMetaContent[i].m_pData;
+ }
+ m_TileMetaContent.clear();
}
SNANDContent* CNANDContentLoader::GetContentByIndex(int _Index)
@@ -125,7 +133,7 @@ bool CNANDContentLoader::CreateFromDirectory(const std::string& _rPath) sprintf(szFilename, "%s\\%08x.app", _rPath.c_str(), rContent.m_ContentID);
FILE* pFile = fopen(szFilename, "rb");
- // i have seen TMD which index to app which doesn't exist...
+ // i have seen TMDs which index to app which doesn't exist...
if (pFile != NULL)
{
u64 Size = File::GetSize(szFilename);
|
