this is the fix!!!!!
This commit is contained in:
marauder2k7 2023-07-25 12:15:53 +01:00
parent f452ea9823
commit b97c8fc980
2 changed files with 5 additions and 9 deletions

View file

@ -19,7 +19,7 @@ jobs:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ ubuntu-latest ]
os: [ ubuntu-latest, macos-latest, windows-latest ]
steps:
- uses: actions/checkout@v3

View file

@ -84,18 +84,14 @@ DataChunker::DataBlock::~DataBlock()
void DataChunker::freeBlocks(bool keepOne)
{
while(mCurBlock && mCurBlock->next)
while (mCurBlock && mCurBlock->next)
{
DataBlock *temp = mCurBlock->next;
DataBlock* temp = mCurBlock->next;
dFree(mCurBlock);
mCurBlock = temp;
}
if (!keepOne)
{
if (mCurBlock) dFree(mCurBlock);
mCurBlock = NULL;
}
else if (mCurBlock)
if (mCurBlock)
{
mCurBlock->curIndex = 0;
mCurBlock->next = NULL;