From 8eb1835415294d2bc5ad3da293fedfae2e160e8f Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Mon, 28 Apr 2014 11:24:29 -0700 Subject: [PATCH] fix a potential bug in CProfileNode destructor, if the SDK is included/used multiple times. --- src/LinearMath/btQuickprof.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/LinearMath/btQuickprof.cpp b/src/LinearMath/btQuickprof.cpp index 68c90c1cd..44e212f31 100644 --- a/src/LinearMath/btQuickprof.cpp +++ b/src/LinearMath/btQuickprof.cpp @@ -293,8 +293,7 @@ void CProfileNode::CleanupMemory() CProfileNode::~CProfileNode( void ) { - delete ( Child); - delete ( Sibling); + CleanupMemory(); }