]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/stream.cpp
Fix Cygwin and MinGW compilation
[wxWidgets.git] / src / common / stream.cpp
index 3cf1db7f2749d40f527e22325b374170bcef9949..c6ffc3895be16d426d10abaa53cacef505c54a85 100644 (file)
@@ -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()