Fix possible missing clipboard deinit

pull/47/head
Lauri Kasanen 4 years ago
parent 5341bc6fba
commit 4b28667e90

@ -273,6 +273,11 @@ void VNCServerST::removeSocket(network::Socket* sock) {
std::list<VNCSConnectionST*>::iterator ci; std::list<VNCSConnectionST*>::iterator ci;
for (ci = clients.begin(); ci != clients.end(); ci++) { for (ci = clients.begin(); ci != clients.end(); ci++) {
if ((*ci)->getSock() == sock) { if ((*ci)->getSock() == sock) {
if (clipboardClient == *ci)
handleClipboardAnnounce(*ci, false);
clipboardRequestors.remove(*ci);
// - Delete the per-Socket resources // - Delete the per-Socket resources
delete *ci; delete *ci;

Loading…
Cancel
Save