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;
|
const Value Value::Null;
|
||||||
|
|
||||||
Value::Value()
|
Value::Value()
|
||||||
: _vectorData(new ValueVector())
|
: _vectorData(nullptr)
|
||||||
, _mapData(new ValueMap())
|
, _mapData(nullptr)
|
||||||
, _intKeyMapData(new ValueMapIntKey())
|
, _intKeyMapData(nullptr)
|
||||||
, _type(Type::NONE)
|
, _type(Type::NONE)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue