Fixed memory leak in textcmn.cpp

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2001-06-06 11:17:30 +00:00
parent fae5c45283
commit 9e3cb9eefc
5 changed files with 35 additions and 10 deletions

View File

@@ -64,7 +64,7 @@ wxTextCtrlBase::~wxTextCtrlBase()
{
#ifndef NO_TEXT_WINDOW_STREAM
#if !wxUSE_IOSTREAMH
delete m_streambuf;
delete[] m_streambuf;
#endif
#endif
}