| 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();
|
| }
|
| }
|
|
|