diff --git a/src/inspector_agent.cc b/src/inspector_agent.cc index c93aab4eafce04..5af395453c04cc 100644 --- a/src/inspector_agent.cc +++ b/src/inspector_agent.cc @@ -195,7 +195,7 @@ class JsBindingsSessionDelegate : public InspectorSessionDelegate { v8::WeakCallbackType::kParameter); } - virtual ~JsBindingsSessionDelegate() { + ~JsBindingsSessionDelegate() override { session_.Reset(); receiver_.Reset(); callback_.Reset(); diff --git a/src/inspector_agent.h b/src/inspector_agent.h index 08c4af9a9cc458..2bc65f76640261 100644 --- a/src/inspector_agent.h +++ b/src/inspector_agent.h @@ -37,6 +37,7 @@ namespace inspector { class InspectorSessionDelegate { public: + virtual ~InspectorSessionDelegate() = default; virtual bool WaitForFrontendMessage() = 0; virtual void OnMessage(const v8_inspector::StringView& message) = 0; };