- wxObjectList::compatibility_iterator node = m_properties.GetFirst();
- while (node)
- {
- wxProperty *prop = (wxProperty *)node->GetData();
- wxObjectList::compatibility_iterator next = node->GetNext();
- delete prop;
- delete node;
- node = next;
- }
+ wxObjectList::compatibility_iterator node = m_properties.GetFirst();
+ while (node)
+ {
+ wxProperty *prop = (wxProperty *)node->GetData();
+ delete prop;
+ node = node->GetNext();
+ }
+ m_properties.Clear();