Merge pull request #6150 from mgcL/Value-memory-leak

A potential memory leak in value's default constructor.
This commit is contained in:
James Chen 2014-04-07 16:32:01 +08:00
commit 1b85be2b9b
1 changed files with 3 additions and 3 deletions

View File

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