diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-06-12 10:26:41 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-06-12 10:26:41 (GMT) |
commit | 9bc8ddaf40d73647944592385bf56ece41046846 (patch) | |
tree | 200c49a14f60754050af71922234d4aadb991bd1 /Swift/Controllers/MainController.cpp | |
parent | eded58915fd89e8b008ba7e078c5967fdef9f4cb (diff) | |
download | swift-contrib-9bc8ddaf40d73647944592385bf56ece41046846.zip swift-contrib-9bc8ddaf40d73647944592385bf56ece41046846.tar.bz2 |
Removing auto delete stuff from Request.
This should now be handled properly by using shared_ptrs.
Diffstat (limited to 'Swift/Controllers/MainController.cpp')
-rw-r--r-- | Swift/Controllers/MainController.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/Controllers/MainController.cpp b/Swift/Controllers/MainController.cpp index e5036a5..ff53450 100644 --- a/Swift/Controllers/MainController.cpp +++ b/Swift/Controllers/MainController.cpp @@ -101,7 +101,7 @@ void MainController::handleConnected() { discoResponder_->setDiscoInfo(capsInfo_->getNode() + "#" + capsInfo_->getVersion(), discoInfo); serverDiscoInfo_ = boost::shared_ptr<DiscoInfo>(new DiscoInfo()); - GetDiscoInfoRequest* discoInfoRequest = new GetDiscoInfoRequest(JID(), client_, Request::AutoDeleteAfterResponse); + boost::shared_ptr<GetDiscoInfoRequest> discoInfoRequest(new GetDiscoInfoRequest(JID(), client_)); discoInfoRequest->onResponse.connect(boost::bind(&MainController::handleServerDiscoInfoResponse, this, _1, _2)); discoInfoRequest->send(); |