Index: components/dom_distiller/content/renderer/distillability_agent.cc |
diff --git a/components/dom_distiller/content/renderer/distillability_agent.cc b/components/dom_distiller/content/renderer/distillability_agent.cc |
index f0ae4b511a4b0d86e8ea6bc99f5709f17e4d8d03..c4662c96e2527d5e35441b591931d37231e8ca4e 100644 |
--- a/components/dom_distiller/content/renderer/distillability_agent.cc |
+++ b/components/dom_distiller/content/renderer/distillability_agent.cc |
@@ -184,4 +184,8 @@ void DistillabilityAgent::DidMeaningfulLayout( |
DistillabilityAgent::~DistillabilityAgent() {} |
+void DistillabilityAgent::OnDestruct() { |
+ delete this; |
+} |
+ |
} // namespace dom_distiller |