Autorelease custom extended class, fix memory leak
Merge pull request #5900 from heliclei/fix-test-memory-leak

 fix memory leak in CocosDenshionTest.