mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
fix: crash when closing active macOS native tab (#39394)
fix: crash when closing current active macOS native tab
This commit is contained in:
@@ -24,6 +24,7 @@ InspectableWebContentsViewMac::InspectableWebContentsViewMac(
|
||||
initWithInspectableWebContentsViewMac:this]) {}
|
||||
|
||||
InspectableWebContentsViewMac::~InspectableWebContentsViewMac() {
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:view_];
|
||||
CloseDevTools();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user