Commit 243beb57 authored by Krzysztof Nowicki's avatar Krzysztof Nowicki Committed by Laurent Montel
Browse files

Fix memory leak

parent f05fbd78
......@@ -109,7 +109,7 @@ bool EwsSyncFolderHierarchyRequest::parseResult(QXmlStreamReader &reader)
bool EwsSyncFolderHierarchyRequest::parseItemsResponse(QXmlStreamReader &reader)
{
auto resp = new EwsSyncFolderHierarchyRequest::Response(reader);
QScopedPointer<EwsSyncFolderHierarchyRequest::Response> resp(new EwsSyncFolderHierarchyRequest::Response(reader));
if (resp->responseClass() == EwsResponseUnknown) {
return false;
}
......
......@@ -116,7 +116,7 @@ bool EwsSyncFolderItemsRequest::parseResult(QXmlStreamReader &reader)
bool EwsSyncFolderItemsRequest::parseItemsResponse(QXmlStreamReader &reader)
{
auto resp = new EwsSyncFolderItemsRequest::Response(reader);
QScopedPointer<EwsSyncFolderItemsRequest::Response> resp(new EwsSyncFolderItemsRequest::Response(reader));
if (resp->responseClass() == EwsResponseUnknown) {
return false;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment