CCScrollView::setContainer bug

void CCScrollView::setContainer(CCNode * pContainer)
{
this~~>removeAllChildrenWithCleanup;
if return;

When the pContainer to NULL, this~~> removeAllChildrenWithCleanup makes this~~> m_pContainer release, this~~> m_pContainer into a dangling pointer

It makes sense. So what do you expect when passing a NULL pointer to setContainer?
Do the children of CCScrollView need to be removed and the member variables need to be re-assigned ?

If to support pContainer NULL, then ensure that no crash.

Thanks. http://www.cocos2d-x.org/issues/1862 was created.
Acai Chen wrote:

If to support pContainer NULL, then ensure that no crash.