When reconnecting to another server in amuled:
#0 0xb7eaaf54 in wxSocketBase::Destroy (this=0x8720160) at src/common/socket.cpp:253
#1 0x08104867 in ~wxDatagramSocketProxy (this=0x8720160) at Proxy.cpp:765
#2 0xb7f0f810 in wxConsoleAppTraitsBase::ScheduleForDestroy (this=0x83efb90, object=0x8720160)
at src/common/appbase.cpp:497
#3 0xb7eaafb6 in wxSocketBase::Destroy (this=0x8720160) at src/common/socket.cpp:263
#4 0x08104867 in ~wxDatagramSocketProxy (this=0x8720160) at Proxy.cpp:765
#5 0xb7f0f810 in wxConsoleAppTraitsBase::ScheduleForDestroy (this=0x83efb90, object=0x8720160)
at src/common/appbase.cpp:497
#6 0xb7eaafb6 in wxSocketBase::Destroy (this=0x8720160) at src/common/socket.cpp:263
#7 0x08104867 in ~wxDatagramSocketProxy (this=0x8720160) at Proxy.cpp:765
#8 0xb7f0f810 in wxConsoleAppTraitsBase::ScheduleForDestroy (this=0x83efb90, object=0x8720160)
at src/common/appbase.cpp:497
#9 0xb7eaafb6 in wxSocketBase::Destroy (this=0x8720160) at src/common/socket.cpp:263
#10 0x08104867 in ~wxDatagramSocketProxy (this=0x8720160) at Proxy.cpp:765
#11 0xb7f0f810 in wxConsoleAppTraitsBase::ScheduleForDestroy (this=0x83efb90, object=0x8720160)
at src/common/appbase.cpp:497
And so it goes.
Phoenix - on wxBase there's no "Destroy" - call c++ delete for sockets too.