mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32: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
|
@ -176,8 +176,7 @@ PSDReader::PSDReader()
|
|||
|
||||
PSDReader::~PSDReader()
|
||||
{
|
||||
if (mFS != NULL)
|
||||
delete mFS;
|
||||
delete mFS;
|
||||
for (int i = 0; i < (int) mPSDLayerInfoVector.size(); i++)
|
||||
delete mPSDLayerInfoVector[i];
|
||||
PSDPatternMap::iterator itr = mPSDPatternMap.begin();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue