diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-11-20 18:23:09 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-11-20 18:23:09 (GMT) |
commit | cf8e2aca04c9a4021448f829e5b264dad25b28c8 (patch) | |
tree | 6f11cb1a32a9d73f3b9a62db6d06e6ae2dcab6ab /Swiften/Network | |
parent | 97bdf1a66d321bcd059a0ee218bec0cc92d1bc7b (diff) | |
download | swift-contrib-cf8e2aca04c9a4021448f829e5b264dad25b28c8.zip swift-contrib-cf8e2aca04c9a4021448f829e5b264dad25b28c8.tar.bz2 |
Fixed connection leak.
Diffstat (limited to 'Swiften/Network')
-rw-r--r-- | Swiften/Network/BoostConnectionServer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Swiften/Network/BoostConnectionServer.cpp b/Swiften/Network/BoostConnectionServer.cpp index 4e83ad5..cea016d 100644 --- a/Swiften/Network/BoostConnectionServer.cpp +++ b/Swiften/Network/BoostConnectionServer.cpp @@ -37,6 +37,7 @@ void BoostConnectionServer::stop() { void BoostConnectionServer::stop(boost::optional<Error> e) { if (acceptor_) { acceptor_->close(); + delete acceptor_; acceptor_ = NULL; } MainEventLoop::postEvent(boost::bind(boost::ref(onStopped), e), shared_from_this()); |