… | |
… | |
162 | #endif |
162 | #endif |
163 | } |
163 | } |
164 | |
164 | |
165 | client::~client () |
165 | client::~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 | |
173 | void |
177 | void |
174 | client::do_destroy () |
178 | client::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) |