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,10 +13,12 @@
namespace atom {
NodeDebugger::NodeDebugger(node::Environment* env) : env_(env) {
NodeDebugger::NodeDebugger(node::Environment* env)
: env_(env), platform_(nullptr) {
}
NodeDebugger::~NodeDebugger() {
if (platform_)
FreePlatform(platform_);
}