ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/socket/init.C
(Generate patch)

Comparing deliantra/server/socket/init.C (file contents):
Revision 1.23 by root, Sun Dec 17 00:25:44 2006 UTC vs.
Revision 1.26 by root, Wed Dec 20 09:14:22 2006 UTC

54 * client. 54 * client.
55 */ 55 */
56client::client (int fd, const char *peername) 56client::client (int fd, const char *peername)
57: fd (fd), host (strdup (peername)), 57: fd (fd), host (strdup (peername)),
58 socket_ev (this, &client::socket_cb), 58 socket_ev (this, &client::socket_cb),
59 cmd_ev (this, &client::cmd_cb) 59 cmd_ev (this, &client::cmd_cb),
60 cc_inv (this), cc_other (this)
60{ 61{
61 { 62 {
62 struct linger linger_opt; 63 struct linger linger_opt;
63 64
64 linger_opt.l_onoff = 0; 65 linger_opt.l_onoff = 0;
162 pl->socket = 0; 163 pl->socket = 0;
163 164
164 if (fd >= 0) 165 if (fd >= 0)
165 close (fd); 166 close (fd);
166 167
167 free (faces_sent); 168 sfree<uint8> (faces_sent, nrofpixmaps);
168 free (stats.range); 169 free (stats.range);
169 free (stats.title); 170 free (stats.title);
170 free (host); 171 free (host);
171} 172}
172 173

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines