packet stream: clean range allocator in destructor

This commit is contained in:
Stefan Kalkowski 2013-12-13 11:50:43 +01:00 committed by Norman Feske
parent 56a7d00a44
commit e73a71be12
1 changed files with 6 additions and 0 deletions

View File

@ -550,6 +550,12 @@ class Packet_stream_source : private Packet_stream_base
_bulk_buffer_size);
}
~Packet_stream_source()
{
_packet_alloc->remove_range(_bulk_buffer_offset,
_bulk_buffer_size);
}
/**
* Return the size of the bulk buffer.
*/