From a3a3fa090762fd6bf03f9d5b9dff2dea249c0ea5 Mon Sep 17 00:00:00 2001 From: mgcL Date: Sat, 5 Apr 2014 18:55:55 +0800 Subject: [PATCH] fix Value's memory leak --- cocos/base/CCValue.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cocos/base/CCValue.cpp b/cocos/base/CCValue.cpp index c2829ab17e..ae26429a55 100644 --- a/cocos/base/CCValue.cpp +++ b/cocos/base/CCValue.cpp @@ -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) {