From 3ed377f13a5eee39608199149912dcaf738896ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=C5=82odzimierz=20Skiba?= Date: Fri, 14 Apr 2006 19:56:03 +0000 Subject: [PATCH] Build fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38724 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/src/deprecated/prop.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/contrib/src/deprecated/prop.cpp b/contrib/src/deprecated/prop.cpp index c77d63fd28..7f7d122551 100644 --- a/contrib/src/deprecated/prop.cpp +++ b/contrib/src/deprecated/prop.cpp @@ -1024,15 +1024,14 @@ bool wxPropertySheet::HasProperty(const wxString& name) const // Clear all properties void wxPropertySheet::Clear(void) { - 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(); } // Sets/clears the modified flag for each property value