heliclei/cocos2d-x — pull request #166 by cocosQA (2014-04-25 20:55:13+00:00)
Title: fix: debug draw remains after remove the last PhysicsBody.

Split drawing process into two parts, and always perform `detachFromScene()` will solve the problem.