]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fs_zip.cpp
Added simple instructions and autogen.mk to rebuild configure script.
[wxWidgets.git] / src / common / fs_zip.cpp
index d2b6100cc2086cc76b4910cf39b340375015d1e5..225159473b6ecf79701c717167bccdcc4d25fa13 100644 (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)
 {