X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/df21920b800cf87bce324de8a2f2aef878fbbf80..d2c5fe6e6e1ab3b4532b4ca0e2eeba4f9c190562:/src/unix/sockunix.cpp diff --git a/src/unix/sockunix.cpp b/src/unix/sockunix.cpp index c50debc326..b2e298d83f 100644 --- a/src/unix/sockunix.cpp +++ b/src/unix/sockunix.cpp @@ -66,13 +66,6 @@ // wxSocketImpl implementation // ============================================================================ -/* static */ -wxSocketImpl *wxSocketImpl::Create(wxSocketBase& wxsocket) -{ - return new wxSocketImplUnix(wxsocket); -} - - wxSocketError wxSocketImplUnix::GetLastError() const { switch ( errno ) @@ -107,6 +100,9 @@ wxSocketError wxSocketImplUnix::GetLastError() const void wxSocketImplUnix::DoEnableEvents(int flags, bool enable) { wxSocketManager * const manager = wxSocketManager::Get(); + if (!manager) + return; + if ( enable ) { if ( flags & wxSOCKET_INPUT_FLAG )