Autorelease custom extended class, fix memory leak