qml-box2d/qml-box2d — pull request #83 by voptiplex (2014-12-27 23:31:49+00:00)
Title: Fixed memory leak in contact listener and uninitalized value in box2dbod...

Hi gals and guys,
valgrind complains about two issues in the latest qml-box2d.
1)
Uninitalized value mComponentComplete in:

void Box2DBody::createBody()
{
if (!mWorld)
return;

if (!mComponentComplete) {

2) Memory leak in Contact Listenener:

void Box2DWorld::componentComplete()
{
mComponentComplete = true;

enableContactListener(mEnableContactEvents);

calls

mContactListener = new ContactListener(this);

and memory does nor get released.

Best regards,
Thomas