diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index 7b748428a..755d2bbf4 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -964,6 +964,7 @@ bool WebContents::OnMessageReceived(const IPC::Message& message) { // be destroyed on close, and WebContentsDestroyed would be called for it, so // we need to make sure the api::WebContents is also deleted. void WebContents::WebContentsDestroyed() { + memory_pressure_listener_.reset(); // clear out fullscreen state if (CommonWebContentsDelegate::IsFullscreenForTabOrPending(web_contents())) { ExitFullscreenModeForTab(web_contents());