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 /Swiften/QA | |
parent | eded58915fd89e8b008ba7e078c5967fdef9f4cb (diff) | |
download | swift-9bc8ddaf40d73647944592385bf56ece41046846.zip swift-9bc8ddaf40d73647944592385bf56ece41046846.tar.bz2 |
Removing auto delete stuff from Request.
This should now be handled properly by using shared_ptrs.
Diffstat (limited to 'Swiften/QA')
-rw-r--r-- | Swiften/QA/ClientTest/ClientTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/QA/ClientTest/ClientTest.cpp b/Swiften/QA/ClientTest/ClientTest.cpp index 20a03a4..d3e8c67 100644 --- a/Swiften/QA/ClientTest/ClientTest.cpp +++ b/Swiften/QA/ClientTest/ClientTest.cpp @@ -28,7 +28,7 @@ void handleRosterReceived(boost::shared_ptr<Payload>) { } void handleConnected() { - GetRosterRequest* rosterRequest = new GetRosterRequest(client, Request::AutoDeleteAfterResponse); + boost::shared_ptr<GetRosterRequest> rosterRequest(new GetRosterRequest(client)); rosterRequest->onResponse.connect(boost::bind(&handleRosterReceived, _1)); rosterRequest->send(); } |