Clean up NETWORK_SESSION code after r191848
[WebKit-https.git] / Source / WebKit2 / NetworkProcess / NetworkResourceLoader.cpp
index 2c50973b808c8f01396e4f01c08c358e6a52074f..776d7ccd2bd73f0ce33050c720e354279a6b155a 100644 (file)
@@ -470,7 +470,8 @@ void NetworkResourceLoader::didReceiveResponse(const WebCore::ResourceResponse&
 void NetworkResourceLoader::didReceiveData(RefPtr<WebCore::SharedBuffer>&& buffer)
 {
     ASSERT(buffer);
-    sharedDidReceiveBuffer(WTF::move(buffer), buffer->size());
+    auto size = buffer->size();
+    sharedDidReceiveBuffer(WTF::move(buffer), size);
 }
 
 void NetworkResourceLoader::didCompleteWithError(const WebCore::ResourceError& error)