Skip to content

Commit

Permalink
libcore|Fixed: Bugs in handling Block data
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Sep 1, 2019
1 parent 8301203 commit 062d8f6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions doomsday/libs/core/src/data/block.cpp
Expand Up @@ -90,7 +90,10 @@ Block::Block(const IByteArray &other, Offset at, Size count) : IByteArray()

Block::~Block()
{
deinit_Block(&_block);
if (_block.i)
{
deinit_Block(&_block);
}
}

Block::Size Block::size() const
Expand Down Expand Up @@ -252,7 +255,7 @@ Block Block::take(iBlock *b)
{
Block block(b);
delete_Block(b);
return b;
return block;
}

Block &Block::operator+=(const Block &other)
Expand Down

0 comments on commit 062d8f6

Please sign in to comment.