1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Allow some cases of uninitialized parsers

This commit is contained in:
Brian Fiete 2022-06-11 05:48:55 -07:00
parent 931e29a1f3
commit 8163d5b647
2 changed files with 68 additions and 56 deletions

View file

@ -404,7 +404,11 @@ BfParser::~BfParser()
{
int parserCount = gParserCount--;
if (mParserData->mRefCount == -1)
if (mParserData == NULL)
{
}
else if (mParserData->mRefCount == -1)
{
// Owned data, never intended for cache
mParserData->mSrc = NULL; // Count on BfSource dtor to release strc