Fix concurrency issues. In particular this should fix crashes when a
commitcbb1dd0f89fb6f37112b719bf249b253175b47f8
authorgpothier <gpothier@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>
Thu, 28 Aug 2008 17:34:01 +0000 (28 17:34 +0000)
committergpothier <gpothier@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>
Thu, 28 Aug 2008 17:34:01 +0000 (28 17:34 +0000)
treee0521089e5ca794839cf480f5de2c840b0fbc46d
parent6aaee817e2737913ddb0351647550934c661a3f5
Fix concurrency issues. In particular this should fix crashes when a
connection is closed either from krdc or from the server side.
Bug reporters, please check if you can still reproduce the crashes with this
patch (this is for trunk, backporting to 4.1 in a few minutes).

Details:
1- Disconnect signals from the client thread to the vncview when the
latter is deleted. This Fixes a 100% repeatable crash that occurs when
I close a vnc tab that is connected to an ubuntu machine running the
vino vnc server (aka gnome desktop sharing)
2- Remove the buf global variable. I wasn't able to get a
reproducible crash due only to this variable because of the above
item, but getting rid of that variable is the sanest thing to do I
think.

CCBUG:164203
CCBUG:160728
CCMAIL:uwolfer@kde.org

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/KDE/kdenetwork@854023 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
krdc/vnc/vncclientthread.cpp
krdc/vnc/vncview.cpp