提交 9ead422c 编写于 作者: Y youngwolf

Fix possibility of memory leaks for auto_buffer.

上级 326c98db
......@@ -66,7 +66,7 @@ public:
~auto_buffer() {clear();}
buffer_type raw_buffer() const {return buffer;}
void raw_buffer(buffer_type _buffer) {buffer = _buffer;}
void raw_buffer(buffer_type _buffer) {clear(); buffer = _buffer;}
//the following five functions are needed by ascs
bool empty() const {return nullptr == buffer || buffer->empty();}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册