X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e9f692911da77538e58ed4539be6f7ac3774d320..5ed738a766bb06539893bd424759e75926c43e15:/src/common/stream.cpp diff --git a/src/common/stream.cpp b/src/common/stream.cpp index 3cf1db7f27..c6ffc3895b 100644 --- a/src/common/stream.cpp +++ b/src/common/stream.cpp @@ -68,8 +68,8 @@ void wxStreamBuffer::InitBuffer() m_buffer_pos = NULL; m_buffer_size = 0; - // there is nothing to destroy anyhow - m_destroybuf = FALSE; + // if we are going to allocate the buffer, we should free it later as well + m_destroybuf = TRUE; } void wxStreamBuffer::Init()