From df700b998f80362bfa7e1572bcb24eb59b8670a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Terziman?= Date: Fri, 6 Sep 2013 17:46:20 +0200 Subject: [PATCH] Another small bug correction in Q3BSPZipArchive --- code/Q3BSPZipArchive.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/Q3BSPZipArchive.cpp b/code/Q3BSPZipArchive.cpp index 8865b75e0..c1cf5fce1 100644 --- a/code/Q3BSPZipArchive.cpp +++ b/code/Q3BSPZipArchive.cpp @@ -74,7 +74,8 @@ Q3BSPZipArchive::~Q3BSPZipArchive() { for( std::map::iterator it(m_ArchiveMap.begin()), end(m_ArchiveMap.end()); it != end; ++it ) { - delete it->second; + ZipFile *pZipFile = reinterpret_cast(it->second); + delete pZipFile; } m_ArchiveMap.clear();