mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Fix uninitialized NodePlatform
This commit is contained in:
@@ -13,11 +13,13 @@
|
||||
|
||||
namespace atom {
|
||||
|
||||
NodeDebugger::NodeDebugger(node::Environment* env) : env_(env) {
|
||||
NodeDebugger::NodeDebugger(node::Environment* env)
|
||||
: env_(env), platform_(nullptr) {
|
||||
}
|
||||
|
||||
NodeDebugger::~NodeDebugger() {
|
||||
FreePlatform(platform_);
|
||||
if (platform_)
|
||||
FreePlatform(platform_);
|
||||
}
|
||||
|
||||
void NodeDebugger::Start() {
|
||||
|
||||
Reference in New Issue
Block a user