Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp

Issue 2957513002: Removed calls to RefPtr::Release in return statements with auto move. (Closed)
Patch Set: rebased Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
index 84a7ca26769deb2466cdb0aefcee45813cd3b795..b28d7aa03f20387c80f1d46df074f8fe88cc5f3d 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.cpp
@@ -123,7 +123,7 @@ PassRefPtr<DrawingBuffer> DrawingBuffer::Create(
drawing_buffer->BeginDestruction();
return PassRefPtr<DrawingBuffer>();
}
- return drawing_buffer.Release();
+ return drawing_buffer;
}
void DrawingBuffer::ForceNextDrawingBufferCreationToFail() {
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/Image.cpp ('k') | third_party/WebKit/Source/platform/network/EncodedFormData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698