Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed Apr 24, 2024
1 parent c31f34d commit 37d7bb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ww/buffer_stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ buffer_stream_t *newBufferStream(struct buffer_pool_s *pool)
void empytBufferStream(buffer_stream_t *self)
{
c_foreach(i, queue, self->q) { reuseBuffer(self->pool, *i.ref); }
queue_clear(&self->q);
}

void destroyBufferStream(buffer_stream_t *self)
{
empytBufferStream(self);
c_foreach(i, queue, self->q) { reuseBuffer(self->pool, *i.ref); }
queue_drop(&self->q);
free(self);
}
Expand Down

0 comments on commit 37d7bb4

Please sign in to comment.