Fix uninitialized NodePlatform
This commit is contained in:
		
					parent
					
						
							
								3138c85218
							
						
					
				
			
			
				commit
				
					
						a34d45d8c4
					
				
			
		
					 1 changed files with 4 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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_);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue