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.31 by root, Mon Dec 25 11:25:50 2006 UTC vs.
Revision 1.32 by root, Wed Dec 27 05:32:26 2006 UTC

162#endif 162#endif
163} 163}
164 164
165client::~client () 165client::~client ()
166{ 166{
167 sockvec::iterator i = find (clients.begin (), clients.end (), this);
168 if (i != clients.end ())
169 clients.erase (i);
170
167 sfree<uint8> (faces_sent, nrofpixmaps); 171 sfree<uint8> (faces_sent, nrofpixmaps);
168 free (stats.range); 172 free (stats.range);
169 free (stats.title); 173 free (stats.title);
170 free (host); 174 free (host);
171} 175}
172 176
173void 177void
174client::do_destroy () 178client::do_destroy ()
175{ 179{
176 attachable::do_destroy (); 180 attachable::do_destroy ();
177
178 sockvec::iterator i = find (clients.begin (), clients.end (), this);
179 if (i != clients.end ())
180 clients.erase (i);
181 181
182 if (pl) 182 if (pl)
183 pl->disconnect (); 183 pl->disconnect ();
184 184
185 if (fd >= 0) 185 if (fd >= 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines