From ee59f28e04d1a2750f6524fac3b153438a64354d Mon Sep 17 00:00:00 2001 From: rude Date: Tue, 10 Nov 2009 20:24:29 +0100 Subject: [PATCH] Some destructors in love.physics were non-virtual. --- src/modules/physics/box2d/Body.h | 2 +- src/modules/physics/box2d/Contact.h | 2 +- src/modules/physics/box2d/World.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/physics/box2d/Body.h b/src/modules/physics/box2d/Body.h index a67566807..72a1b69da 100644 --- a/src/modules/physics/box2d/Body.h +++ b/src/modules/physics/box2d/Body.h @@ -75,7 +75,7 @@ namespace box2d **/ Body(World * world, b2Vec2 p, float m, float i); - ~Body(); + virtual ~Body(); /** * Gets the current x-position of the Body. diff --git a/src/modules/physics/box2d/Contact.h b/src/modules/physics/box2d/Contact.h index cb48512a3..721c8f345 100644 --- a/src/modules/physics/box2d/Contact.h +++ b/src/modules/physics/box2d/Contact.h @@ -65,7 +65,7 @@ namespace box2d **/ Contact(World * world, const b2ContactPoint * point); - ~Contact(); + virtual ~Contact(); /** * Gets the position of the Contact. diff --git a/src/modules/physics/box2d/World.h b/src/modules/physics/box2d/World.h index 625079689..17d237401 100644 --- a/src/modules/physics/box2d/World.h +++ b/src/modules/physics/box2d/World.h @@ -107,7 +107,7 @@ namespace box2d **/ World(b2AABB aabb, b2Vec2 gravity, bool sleep); - ~World(); + virtual ~World(); /** * Updates everything in the world one timestep.