Clearing up some memory to prevent stupid issues

Preparing for some optimisations. (absolutely need to reduce the ammount of allocations done.)
This commit is contained in:
Godzil
2020-03-02 08:24:09 +00:00
parent 0ac44c3539
commit ace7d53571
5 changed files with 24 additions and 4 deletions

View File

@@ -31,6 +31,14 @@ public:
if (p == nullptr) { return; }
/* clear up the list */
do
{
ChainList *next = p->next;
free(p);
p = next;
}
while(p != nullptr);
}
Shape *last()