correct deletes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett 2006-10-24 17:04:16 +00:00
parent 31775dfa4c
commit e7c6f5a17f

View File

@ -171,7 +171,7 @@ wxStreamError wxBackingFileImpl::ReadAt(wxFileOffset pos,
delete m_stream;
m_stream = NULL;
if (count > 0) {
delete m_buf;
delete[] m_buf;
m_buf = NULL;
m_buflen = 0;
}
@ -182,7 +182,7 @@ wxStreamError wxBackingFileImpl::ReadAt(wxFileOffset pos,
m_buflen = 0;
if (!m_stream) {
delete m_buf;
delete[] m_buf;
m_buf = NULL;
}
}