fix: memory leak in BrowserWindow (#27621)
This commit is contained in:
parent
b6a91ef5df
commit
e87803919b
4 changed files with 3 additions and 33 deletions
|
@ -35,9 +35,6 @@ TrackableObjectBase::TrackableObjectBase() {
|
|||
// TODO(zcbenz): Make TrackedObject work in renderer process.
|
||||
DCHECK(gin_helper::Locker::IsBrowserProcess())
|
||||
<< "This class only works for browser process";
|
||||
|
||||
electron::ElectronBrowserMainParts::Get()->RegisterDestructionCallback(
|
||||
GetDestroyClosure());
|
||||
}
|
||||
|
||||
TrackableObjectBase::~TrackableObjectBase() = default;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue