fix: crash when closing active macOS native tab (#39394)

fix: crash when closing current active macOS native tab
This commit is contained in:
Robo 2023-08-08 17:45:03 +09:00 committed by GitHub
parent 8f4f82618c
commit eecfaec8c9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,6 +24,7 @@ InspectableWebContentsViewMac::InspectableWebContentsViewMac(
initWithInspectableWebContentsViewMac:this]) {}
InspectableWebContentsViewMac::~InspectableWebContentsViewMac() {
[[NSNotificationCenter defaultCenter] removeObserver:view_];
CloseDevTools();
}