X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ed4c6c69a9ffdbb975e954fd86aea2893ce490a5..b913d3ed6e9683c477fac4c12021f5e53bdf5675:/src/common/socket.cpp diff --git a/src/common/socket.cpp b/src/common/socket.cpp index 96f06d81b2..377384849f 100644 --- a/src/common/socket.cpp +++ b/src/common/socket.cpp @@ -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; }