Fix memleak in physics_restitution example (#932)

This commit is contained in:
Michael Vetter 2019-08-07 09:24:56 +02:00 committed by Ray
parent 5f1990e044
commit f3555a1016

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