Fix my own stupidity.
This commit is contained in:
@@ -34,10 +34,13 @@ Intersect::~Intersect()
|
||||
int i;
|
||||
for(i = 0; i < this->num; i++)
|
||||
{
|
||||
free(this->list[i]);
|
||||
delete this->list[i];
|
||||
}
|
||||
/* Free stuff */
|
||||
if (this->list != nullptr)
|
||||
{
|
||||
free(this->list);
|
||||
}
|
||||
}
|
||||
|
||||
void Intersect::reset()
|
||||
|
||||
Reference in New Issue
Block a user