correct deletes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
31775dfa4c
commit
e7c6f5a17f
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user