mirror of https://github.com/axmolengine/axmol.git
Merge pull request #6150 from mgcL/Value-memory-leak
A potential memory leak in value's default constructor.
This commit is contained in:
commit
1b85be2b9b
|
@ -31,9 +31,9 @@ NS_CC_BEGIN
|
|||
const Value Value::Null;
|
||||
|
||||
Value::Value()
|
||||
: _vectorData(new ValueVector())
|
||||
, _mapData(new ValueMap())
|
||||
, _intKeyMapData(new ValueMapIntKey())
|
||||
: _vectorData(nullptr)
|
||||
, _mapData(nullptr)
|
||||
, _intKeyMapData(nullptr)
|
||||
, _type(Type::NONE)
|
||||
{
|
||||
|
||||
|
|
Loading…
Reference in New Issue