diff options
Diffstat (limited to 'Swiften/QA/ClientTest/ClientTest.cpp')
-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(); } |