Another small bug correction in Q3BSPZipArchive

pull/261/head
Léo Terziman 2013-09-06 17:46:20 +02:00
parent 2ef0f0f0e1
commit df700b998f
1 changed files with 2 additions and 1 deletions

View File

@ -74,7 +74,8 @@ Q3BSPZipArchive::~Q3BSPZipArchive()
{ {
for( std::map<std::string, IOStream*>::iterator it(m_ArchiveMap.begin()), end(m_ArchiveMap.end()); it != end; ++it ) for( std::map<std::string, IOStream*>::iterator it(m_ArchiveMap.begin()), end(m_ArchiveMap.end()); it != end; ++it )
{ {
delete it->second; ZipFile *pZipFile = reinterpret_cast<ZipFile*>(it->second);
delete pZipFile;
} }
m_ArchiveMap.clear(); m_ArchiveMap.clear();