added wxZipFSHandler::Cleanup() (modified patch 1213615)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-07-28 21:00:46 +00:00
parent 083508af51
commit f60b1d829d
4 changed files with 19 additions and 12 deletions

View File

@@ -71,13 +71,17 @@ wxZipFSHandler::wxZipFSHandler() : wxFileSystemHandler()
wxZipFSHandler::~wxZipFSHandler()
{
if (m_Archive)
delete m_Archive;
if (m_DirsFound)
delete m_DirsFound;
Cleanup();
}
void wxZipFSHandler::Cleanup()
{
wxDELETE(m_Archive);
wxDELETE(m_DirsFound);
}
bool wxZipFSHandler::CanOpen(const wxString& location)
{