socket0.cc (336B)
1 #include "socket" 2 3 Socket::~Socket() { 4 #ifdef SOCKET_DEBUG 5 if (*_refcount == 1) { 6 debugmsg("Socket: discarding " << description() << '\n'); 7 } else { 8 debugmsg("Socket: subtracting " << description() << '\n'); 9 } 10 #endif 11 12 (*_refcount)--; 13 if (! *_refcount) { 14 delete _refcount; 15 delete _basesocket; 16 } 17 }