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

Unified Diff: third_party/WebKit/Source/core/timing/Performance.cpp

Issue 2470183002: Fix vcall on nullptr in ~Performance. (Closed)
Patch Set: Created 4 years, 1 month 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: third_party/WebKit/Source/core/timing/Performance.cpp
diff --git a/third_party/WebKit/Source/core/timing/Performance.cpp b/third_party/WebKit/Source/core/timing/Performance.cpp
index 608e1c9b2330f0fa74f9548df1d2d18e98863fac..9f2bda47aae307140f6fb95b10fd158b32bf4750 100644
--- a/third_party/WebKit/Source/core/timing/Performance.cpp
+++ b/third_party/WebKit/Source/core/timing/Performance.cpp
@@ -63,6 +63,9 @@ Performance::Performance(LocalFrame* frame)
m_observingLongTasks(false) {}
Performance::~Performance() {
+ if (!frame()) {
+ return;
+ }
LocalFrame* localRoot = frame()->localFrameRoot();
if (m_observingLongTasks && localRoot) {
m_observingLongTasks = false;
« 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