Merge pull request #15539 from minggo/issue-15329

use Ref::release() to release Ref instance
This commit is contained in:
minggo 2016-05-03 09:39:14 +08:00
commit e11a7fdfe5
1 changed files with 3 additions and 3 deletions

View File

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