Browse Source

Fix memleak in physics_restitution example (#932)

pull/933/head
Michael Vetter 5 years ago
committed by Ray
parent
commit
f3555a1016
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      examples/physac/physics_restitution.c

+ 4
- 0
examples/physac/physics_restitution.c View File

@ -120,6 +120,10 @@ int main(void)
// De-Initialization
//--------------------------------------------------------------------------------------
DestroyPhysicsBody(circleA);
DestroyPhysicsBody(circleB);
DestroyPhysicsBody(circleC);
DestroyPhysicsBody(floor);
ClosePhysics(); // Unitialize physics
CloseWindow(); // Close window and OpenGL context

Loading…
Cancel
Save