mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Remove unnecessary delete statements
If a value is null, the C++ delete statement will do nothing, so there is bo need to explicitly check if the value is null.
This commit is contained in:
parent
7f726ef9ba
commit
e76becf4c6
12 changed files with 22 additions and 41 deletions
|
@ -694,8 +694,7 @@ void BfTypeDef::PopulateMemberSets()
|
|||
BfTypeDef::~BfTypeDef()
|
||||
{
|
||||
BfLogSysM("BfTypeDef::~BfTypeDef %08X\n", this);
|
||||
if (mNextRevision != NULL)
|
||||
delete mNextRevision;
|
||||
delete mNextRevision;
|
||||
FreeMembers();
|
||||
|
||||
if (mSource != NULL)
|
||||
|
@ -3139,8 +3138,7 @@ void BfSystem::RemoveDeletedParsers()
|
|||
}
|
||||
|
||||
BfLogSys(this, "Removing Queued Parser: %p\n", bfParser);
|
||||
if (bfParser != NULL)
|
||||
delete bfParser;
|
||||
delete bfParser;
|
||||
CheckLockYield();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue