]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/socket.cpp
moved wxUniv-specific GUI stuff from wxBase to wxCore; this fixes wxUniv DLL build
[wxWidgets.git] / src / common / socket.cpp
index 96f06d81b2d157aa2e500a2aa4d09e8418fb619c..377384849f1f9e5eaf25a72280f6d2aeeb3e1cec 100644 (file)
@@ -828,7 +828,7 @@ void wxSocketBase::SaveState()
 
 void wxSocketBase::RestoreState()
 {
-  wxNode *node;
+  wxList::compatibility_iterator node;
   wxSocketState *state;
 
   node = m_states.GetLast();
@@ -846,7 +846,7 @@ void wxSocketBase::RestoreState()
   m_cdata      = state->m_cdata;
 #endif // WXWIN_COMPATIBILITY
 
-  delete node;
+  m_states.Erase(node);
   delete state;
 }