diff -r cb9cdf247239 -r f090fd705556 TCP/TCPListener.m --- a/TCP/TCPListener.m Wed Apr 22 16:45:39 2009 -0700 +++ b/TCP/TCPListener.m Tue May 05 15:11:02 2009 -0700 @@ -142,7 +142,7 @@ if (0 == _port) { // now that the binding was successful, we get the port number - NSData *addr = [(NSData *)CFSocketCopyAddress(_ipv4socket) autorelease]; + NSData *addr = [NSMakeCollectable( CFSocketCopyAddress(_ipv4socket) ) autorelease]; const struct sockaddr_in *addr4 = addr.bytes; self.port = ntohs(addr4->sin_port); }