Commit 849a893c authored by Urs Wolfer's avatar Urs Wolfer

* Cleanup VNC in all cases.

Patch by Patch by Wouter Van Meir <wouter.vanmeir pandora.be>, thanks.

svn path=/trunk/KDE/kdenetwork/krdc/; revision=1147273
parent 7c9076f7
......@@ -210,6 +210,9 @@ VncClientThread::~VncClientThread()
kDebug(5011) << "Attempting to stop in deconstructor, will crash if this fails:" << quitSuccess;
}
// Disconnect from vnc server & cleanup allocated resources
rfbClientCleanup(cl);
delete [] frameBuffer;
}
......@@ -354,8 +357,6 @@ void VncClientThread::run()
locker.relock();
}
// Cleanup allocated resources
rfbClientCleanup(cl);
m_stopped = true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment