summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-12-27 19:27:29 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-12-27 19:27:29 (GMT)
commit0811be1b9948bfc9fcce46586ad20c1ac1a619ad (patch)
treee0956dcc5121ec313f91404d46b74ca4fae689c6 /Swiften
parent2ef4bb560dad95555a5ae94d0bd5bff49d50d3d3 (diff)
downloadswift-0811be1b9948bfc9fcce46586ad20c1ac1a619ad.zip
swift-0811be1b9948bfc9fcce46586ad20c1ac1a619ad.tar.bz2
Disconnect signals in IQRouter.
Diffstat (limited to 'Swiften')
-rw-r--r--Swiften/Queries/IQRouter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Swiften/Queries/IQRouter.cpp b/Swiften/Queries/IQRouter.cpp
index 6e80b3f..a08668a 100644
--- a/Swiften/Queries/IQRouter.cpp
+++ b/Swiften/Queries/IQRouter.cpp
@@ -23,6 +23,7 @@ IQRouter::IQRouter(IQChannel* channel) : channel_(channel), queueRemoves_(false)
}
IQRouter::~IQRouter() {
+ channel_->onIQReceived.disconnect(boost::bind(&IQRouter::handleIQ, this, _1));
}
bool IQRouter::isAvailable() {