cocos2d/cocos2d-x — pull request #794 by dumganhar (2012-03-21 14:00:37+00:00)
Title: issue #1056: Fixed a bug about double free memory and glDrawElements caused crash. 

1 .Fixed a bug of double delete TouchDispatcher.
2. Modified the last parameter of glDrawElements. It will cause crash on some devices if the last parameter which means Indices's pointer is zero.
3. Fixed a bug of using DELETE and malloc(calloc).