summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordknn <yoann.blein@free.fr>2012-07-15 13:45:23 (GMT)
committerdknn <yoann.blein@free.fr>2012-09-22 09:01:49 (GMT)
commit70e395802de55b1d2eb9f92ad86349cd2d0d0575 (patch)
tree8759cc27b5d8e0a9984bab0beb6802fab769ae8a /Swiften/ScreenSharing/ScreenSharing.cpp
parentdd1c425caa5badf2d0b53271b7734f5be57d4003 (diff)
downloadswift-contrib-70e395802de55b1d2eb9f92ad86349cd2d0d0575.zip
swift-contrib-70e395802de55b1d2eb9f92ad86349cd2d0d0575.tar.bz2
Add signal disconnects
Diffstat (limited to 'Swiften/ScreenSharing/ScreenSharing.cpp')
-rw-r--r--Swiften/ScreenSharing/ScreenSharing.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Swiften/ScreenSharing/ScreenSharing.cpp b/Swiften/ScreenSharing/ScreenSharing.cpp
index eede971..be3c8ab 100644
--- a/Swiften/ScreenSharing/ScreenSharing.cpp
+++ b/Swiften/ScreenSharing/ScreenSharing.cpp
@@ -21,11 +21,12 @@ namespace Swift {
ScreenSharing::ScreenSharing(boost::shared_ptr<JingleSession> session, UDPSocketFactory* udpSocketFactory)
: rtpSession(0), jingleSession(session), udpSocketFactory(udpSocketFactory)
{
- session->onSessionTerminateReceived.connect(boost::bind(&ScreenSharing::handleSessionTerminateReceived, this, _1));
+ jingleSession->onSessionTerminateReceived.connect(boost::bind(&ScreenSharing::handleSessionTerminateReceived, this, _1));
}
ScreenSharing::~ScreenSharing()
{
+ jingleSession->onSessionTerminateReceived.disconnect(boost::bind(&ScreenSharing::handleSessionTerminateReceived, this, _1));
}
void ScreenSharing::stop()