X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9482617091b084d4ee006679a450176715d465e0..194142ed6fec5b7bc09e19b093db3e5d56f3ebc4:/src/common/fs_mem.cpp?ds=inline diff --git a/src/common/fs_mem.cpp b/src/common/fs_mem.cpp index a1013b5bde..7fd1569990 100644 --- a/src/common/fs_mem.cpp +++ b/src/common/fs_mem.cpp @@ -7,7 +7,7 @@ ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "fs_mem.h" #endif @@ -101,6 +101,7 @@ wxMemoryFSHandlerBase::~wxMemoryFSHandlerBase() if (m_Hash) { + WX_CLEAR_HASH_TABLE(*m_Hash); delete m_Hash; m_Hash = NULL; } @@ -160,7 +161,6 @@ bool wxMemoryFSHandlerBase::CheckHash(const wxString& filename) if (m_Hash == NULL) { m_Hash = new wxHashTable(wxKEY_STRING); - m_Hash -> DeleteContents(TRUE); } if (m_Hash -> Get(filename) != NULL)