From e7c6f5a17f8f75f9eaad227e0134020ba44fc9d9 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Tue, 24 Oct 2006 17:04:16 +0000 Subject: [PATCH] correct deletes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/fileback.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/fileback.cpp b/src/common/fileback.cpp index 3e35315984..e5c631f832 100644 --- a/src/common/fileback.cpp +++ b/src/common/fileback.cpp @@ -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; } }