Fix my own stupidity.

This commit is contained in:
Godzil
2020-03-02 16:49:10 +00:00
parent aab9df0802
commit 1cebcd4f8b

View File

@@ -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()