Get CCTexture2D of CCAnimate

Hello guys. I have little question.
I am trying to get CCTexture2D of CCAnimate. As a result I am having bad pointer.
Am i doing something is wrong or this is bug?

Version cocos2d-2.0-rc0a-x-2.0
P.S. Sorry for my language.

SpriteAnimationSplit::SpriteAnimationSplit()
{
CCSize s = CCDirector::sharedDirector()>getWinSize;
CCTexture2D **texture = CCTextureCache::sharedTextureCache
>addImage;
CCSpriteFrame frame0 = CCSpriteFrame::frameWithTexture);
CCSpriteFrame
frame1 = CCSpriteFrame::frameWithTexture);
CCSpriteFrame frame2 = CCSpriteFrame::frameWithTexture);
CCSprite
sprite = CCSprite::spriteWithSpriteFrame;
sprite~~>setPosition );
addChild;
CCArray** animFrames = CCArray::arrayWithCapacity;
animFrames~~>addObject(frame0);
animFrames~~>addObject;
animFrames~~>addObject(frame2);

CCAnimation animation = CCAnimation::animationWithSpriteFrames;
CCAnimate
animate = CCAnimate::actionWithAnimation(animation);

sprite~~>runAction;
// Here i am try get CCTexture2D
CCObject *obj = animation~~>getFrames()>objectAtIndex;
CCSpriteFrame spr = static_cast<CCSpriteFrame *>;
// Bad pointer tex2
CCTexture2D
tex2 = spr
>getTexture();
sprite->initWithTexture(tex2);
}

What’s the value of “tex2”?
Could you paste an project modified from HelloWorld to reproduce this issue?

Hello.

I think the problem is somewhere above.
Because when I called spr-> getTexture() it return m_pobTexture, it has bad data.

Thank you.