From 3d09e529ee436fe4e6dc7a8ed0df13baf83e596e Mon Sep 17 00:00:00 2001 From: minggo <ming@cocos2d-x.org> Date: Fri, 29 Apr 2016 17:11:36 +0800 Subject: [PATCH] use Ref::release() to release Ref instance --- .../simulator/libsimulator/lib/runtime/ConnectWaitLayer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/simulator/libsimulator/lib/runtime/ConnectWaitLayer.cpp b/tools/simulator/libsimulator/lib/runtime/ConnectWaitLayer.cpp index b482fe2e1e..8cac5561d1 100644 --- a/tools/simulator/libsimulator/lib/runtime/ConnectWaitLayer.cpp +++ b/tools/simulator/libsimulator/lib/runtime/ConnectWaitLayer.cpp @@ -150,9 +150,9 @@ ConnectWaitLayer::ConnectWaitLayer() ConnectWaitLayer::~ConnectWaitLayer() { - CC_SAFE_DELETE(_imagebg); - CC_SAFE_DELETE(_imageplay); - CC_SAFE_DELETE(_imageShine); + CC_SAFE_RELEASE(_imagebg); + CC_SAFE_RELEASE(_imageplay); + CC_SAFE_RELEASE(_imageShine); } // clean up: ignore stdin, stdout and stderr