Commit 7cf18084 authored by Will Schroeder's avatar Will Schroeder
Browse files

ENH: Repaired bug in deletion.

parent e66a9e21
......@@ -102,10 +102,11 @@ void vlCollection::RemoveItem(vlObject *a)
// Remove all object from the list.
void vlCollection::RemoveAllItems()
{
vlCollectionElement *p;
vlCollectionElement *p, *next;
for ( p=this->Top; p != NULL; p = p->Next )
for ( next=p=this->Top; next != NULL; p=next)
{
next = p->Next;
delete p;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment