Fix uninitialized NodePlatform

This commit is contained in:
Cheng Zhao 2017-11-13 18:07:12 +09:00
parent 3138c85218
commit a34d45d8c4

View file

@ -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() {