From 2733f21d5fdd7cda6395618a717199c0ca23973c Mon Sep 17 00:00:00 2001 From: Kevin Watts Date: Thu, 16 Oct 2014 11:38:45 -0700 Subject: [PATCH 1/2] Adding virtual destructor for RenderCallbacks struct --- btgui/OpenGLWindow/fontstash.h | 1 + 1 file changed, 1 insertion(+) diff --git a/btgui/OpenGLWindow/fontstash.h b/btgui/OpenGLWindow/fontstash.h index 3159444de..940bb7856 100644 --- a/btgui/OpenGLWindow/fontstash.h +++ b/btgui/OpenGLWindow/fontstash.h @@ -101,6 +101,7 @@ struct sth_texture struct RenderCallbacks { + virtual ~RenderCallbacks() {} virtual void updateTexture(sth_texture* texture, sth_glyph* glyph, int textureWidth, int textureHeight)=0; virtual void render(sth_texture* texture)=0; }; From 0623f99a2794bbf568cf5099d46b44b319449ca5 Mon Sep 17 00:00:00 2001 From: Kevin Watts Date: Thu, 16 Oct 2014 11:58:44 -0700 Subject: [PATCH 2/2] Adding virtual dtors to classes in btSoftBody --- src/BulletSoftBody/btSoftBody.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/BulletSoftBody/btSoftBody.h b/src/BulletSoftBody/btSoftBody.h index ee1a3d952..bd5846bfb 100644 --- a/src/BulletSoftBody/btSoftBody.h +++ b/src/BulletSoftBody/btSoftBody.h @@ -171,6 +171,7 @@ public: /* ImplicitFn */ struct ImplicitFn { + virtual ~ImplicitFn() {} virtual btScalar Eval(const btVector3& x)=0; }; @@ -528,6 +529,7 @@ public: { struct IControl { + virtual ~IControl() {} virtual void Prepare(AJoint*) {} virtual btScalar Speed(AJoint*,btScalar current) { return(current); } static IControl* Default() { static IControl def;return(&def); }