]> git.saurik.com Git - wxWidgets.git/commitdiff
correct deletes
authorPaul Cornett <paulcor@bullseye.com>
Tue, 24 Oct 2006 17:04:16 +0000 (17:04 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Tue, 24 Oct 2006 17:04:16 +0000 (17:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fileback.cpp

index 3e3531598404505000d8c03239b44eab69c16e8d..e5c631f832800c7a10e7e17b9a30c8d306338fb0 100644 (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;
                     }
                 }