Skip to content

Commit

Permalink
Fix compressed to compressed texture conversion leaving leaked memory…
Browse files Browse the repository at this point in the history
…/threads
  • Loading branch information
metallicafan212 committed Jan 23, 2025
1 parent f4b53d7 commit 855eb38
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmp_compressonatorlib/compressonator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,12 @@ CMP_ERROR CMP_API CMP_ConvertTexture(CMP_Texture* pSourceTexture,
}
RESTORE_FP_EXCEPTIONS;

SAFE_DELETE(pCodecIn);
SAFE_DELETE(pCodecOut);
SAFE_DELETE(pSrcBuffer);
SAFE_DELETE(pTempBuffer);
SAFE_DELETE(pDestBuffer);

return GetError(err2);
}
}
Expand Down

0 comments on commit 855eb38

Please sign in to comment.