cocos2d/cocos2d-x — pull request #5683 by huangml (2014-03-11 12:41:36+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.