fix: memory leak in BrowserWindow (#27621)
This commit is contained in:
parent
b6a91ef5df
commit
e87803919b
4 changed files with 3 additions and 33 deletions
|
@ -75,11 +75,6 @@ class ElectronBrowserMainParts : public content::BrowserMainParts {
|
|||
// Gets the exit code
|
||||
int GetExitCode();
|
||||
|
||||
// Register a callback that should be destroyed before JavaScript environment
|
||||
// gets destroyed.
|
||||
// Returns a closure that can be used to remove |callback| from the list.
|
||||
void RegisterDestructionCallback(base::OnceClosure callback);
|
||||
|
||||
// Returns the connection to GeolocationControl which can be
|
||||
// used to enable the location services once per client.
|
||||
device::mojom::GeolocationControl* GetGeolocationControl();
|
||||
|
@ -162,9 +157,6 @@ class ElectronBrowserMainParts : public content::BrowserMainParts {
|
|||
std::unique_ptr<ElectronExtensionsBrowserClient> extensions_browser_client_;
|
||||
#endif
|
||||
|
||||
// List of callbacks should be executed before destroying JS env.
|
||||
std::list<base::OnceClosure> destructors_;
|
||||
|
||||
mojo::Remote<device::mojom::GeolocationControl> geolocation_control_;
|
||||
|
||||
static ElectronBrowserMainParts* self_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue