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:
parent
931e29a1f3
commit
8163d5b647
2 changed files with 68 additions and 56 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue