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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerReflectionInfo.cpp

Issue 1657883002: Fix leak PaintLayerReflectionInfo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/core/paint/PaintLayerReflectionInfo.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerReflectionInfo.cpp b/third_party/WebKit/Source/core/paint/PaintLayerReflectionInfo.cpp
index db2a9b84f30d2e2128bf17a59b61f478e73e0b74..7859231c982f5f7827534db08e3062615d136e7f 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerReflectionInfo.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerReflectionInfo.cpp
@@ -65,7 +65,7 @@ PaintLayerReflectionInfo::PaintLayerReflectionInfo(LayoutBox& layoutObject)
m_reflection->setDangerousOneWayParent(m_box);
}
-void PaintLayerReflectionInfo::destroy()
+PaintLayerReflectionInfo::~PaintLayerReflectionInfo()
{
if (!m_reflection->documentBeingDestroyed())
m_reflection->removeLayers(box().layer());

Powered by Google App Engine
This is Rietveld 408576698