fix: gin_helper::Promise in GPUInfoManager must be destroyed before destroying Node/V8 (#46434)
* fix: gin_helper::Promise in GPUInfoManager must be destroyed before destroying Node/V8 * fix: use CleanedUpAtExit to control the lifetime of GPUInfoManager
This commit is contained in:
parent
0e3246e20d
commit
e46b0c8ddc
2 changed files with 6 additions and 2 deletions
|
@ -17,7 +17,9 @@
|
|||
namespace electron {
|
||||
|
||||
GPUInfoManager* GPUInfoManager::GetInstance() {
|
||||
return base::Singleton<GPUInfoManager>::get();
|
||||
// will be deleted by CleanedUpAtExit::DoCleanup
|
||||
static GPUInfoManager* instance = new GPUInfoManager();
|
||||
return instance;
|
||||
}
|
||||
|
||||
GPUInfoManager::GPUInfoManager()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue