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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user