Browse Source

Another small bug correction in Q3BSPZipArchive

Léo Terziman 12 năm trước cách đây
mục cha
commit
df700b998f
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      code/Q3BSPZipArchive.cpp

+ 2 - 1
code/Q3BSPZipArchive.cpp

@@ -74,7 +74,8 @@ Q3BSPZipArchive::~Q3BSPZipArchive()
 {
 	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();