Skip to content

Commit

Permalink
Removed an unnecessary null pointer test guarding a delete[] call
Browse files Browse the repository at this point in the history
  • Loading branch information
fegennari committed Mar 20, 2020
1 parent 5ab53b8 commit ba293e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/triListOpt.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ namespace TriListOpt
S32 *triIndex;

VertData() : cachePosition(-1), score(0.0f), numReferences(0), numUnaddedReferences(0), triIndex(NULL) {}
~VertData() { if(triIndex != NULL) delete [] triIndex; triIndex = NULL; }
~VertData() { delete [] triIndex; triIndex = NULL; }

This comment has been minimized.

Copy link
@elfring

elfring Mar 20, 2020

Is the resetting of this member variable still questionable?

};

struct TriData
Expand Down

0 comments on commit ba293e8

Please sign in to comment.