Fixed memory leak in listbox, fixed memory leak reporting in app.cpp

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2000-09-08 14:36:00 +00:00
parent 542acbee80
commit 6981d3ecf6
4 changed files with 6 additions and 2 deletions

View File

@ -548,7 +548,7 @@ void wxApp::CleanUp()
// check for memory leaks
#if (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT
if (wxDebugContext::CountObjectsLeft() > 0)
if (wxDebugContext::CountObjectsLeft(TRUE) > 0)
{
wxLogDebug(wxT("There were memory leaks.\n"));
wxDebugContext::Dump();

View File

@ -361,6 +361,8 @@ bool wxListBox::Create( wxWindow *parent, wxWindowID id,
wxListBox::~wxListBox()
{
Clear();
if (m_strings)
delete m_strings;
}
void wxListBox::DoInsertItems(const wxArrayString& items, int pos)

View File

@ -548,7 +548,7 @@ void wxApp::CleanUp()
// check for memory leaks
#if (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT
if (wxDebugContext::CountObjectsLeft() > 0)
if (wxDebugContext::CountObjectsLeft(TRUE) > 0)
{
wxLogDebug(wxT("There were memory leaks.\n"));
wxDebugContext::Dump();

View File

@ -361,6 +361,8 @@ bool wxListBox::Create( wxWindow *parent, wxWindowID id,
wxListBox::~wxListBox()
{
Clear();
if (m_strings)
delete m_strings;
}
void wxListBox::DoInsertItems(const wxArrayString& items, int pos)