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

Unified Diff: Source/platform/graphics/RecordingImageBufferSurface.cpp

Issue 1068413002: Fix memory leak in display list canvas overdraw optimization. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: use RefPtr to unref Created 5 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/RecordingImageBufferSurface.cpp
diff --git a/Source/platform/graphics/RecordingImageBufferSurface.cpp b/Source/platform/graphics/RecordingImageBufferSurface.cpp
index e5e76f60e2e5f5ac2a2f165ca64e2c68de871241..b9018706938ea93ef857ad484d5dea65164cec8b 100644
--- a/Source/platform/graphics/RecordingImageBufferSurface.cpp
+++ b/Source/platform/graphics/RecordingImageBufferSurface.cpp
@@ -147,7 +147,7 @@ void RecordingImageBufferSurface::willOverwriteCanvas()
m_previousFramePixelCount = 0;
if (m_didRecordDrawCommandsInCurrentFrame) {
// Discard previous draw commands
- m_currentFrame->endRecording();
+ adoptRef(m_currentFrame->endRecording());
initializeCurrentFrame();
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698