diff --git a/src/common/stream.cpp b/src/common/stream.cpp index 189916814b..15d6b73c36 100644 --- a/src/common/stream.cpp +++ b/src/common/stream.cpp @@ -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(); }