]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed wxStreamBuffer::SetBufferIO() (thanks to Gilles Depeyrot)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 Jan 2001 14:18:29 +0000 (14:18 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 6 Jan 2001 14:18:29 +0000 (14:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/stream.cpp

index 189916814b5336e8b7ab7868e7a6dad3b7f68dd9..15d6b73c36aa3080c6dafe8ccd844d239e4c217e 100644 (file)
@@ -165,7 +165,7 @@ void wxStreamBuffer::SetBufferIO(void *start,
     m_buffer_size = len;
 
     // if we own it, we free it
-    m_destroybuf = !takeOwnership;
+    m_destroybuf = takeOwnership;
 
     ResetBuffer();
 }