mirror of https://github.com/axmolengine/axmol.git
fixed #569: change the free sequence to avoid bug
This commit is contained in:
parent
8e370eeb10
commit
8ca8f4d9bc
|
@ -65,11 +65,11 @@ blockerSeparate(cpArbiter *arb, cpSpace *space, void *unused)
|
|||
|
||||
static void
|
||||
postStepRemove(cpSpace *space, cpShape *shape, void *unused)
|
||||
{
|
||||
{
|
||||
cpSpaceRemoveShape(space, shape);
|
||||
cpSpaceRemoveBody(space, shape->body);
|
||||
cpBodyFree(shape->body);
|
||||
|
||||
cpSpaceRemoveShape(space, shape);
|
||||
|
||||
cpShapeFree(shape);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue