Blob Blame History Raw
Fix a double-free on exit.

Lubomir Rintel <lkundrak@v3.sk>

--- numptyphysics/Game.cpp.doublefree	2008-09-27 15:01:43.000000000 +0200
+++ numptyphysics/Game.cpp	2008-09-27 15:01:04.000000000 +0200
@@ -661,10 +661,13 @@
       m_strokes.erase(0);
     }
     if ( m_world ) {
+// Haven't seen a leftover body ever, and this causes a doble free()
+#if 0
       while ( m_world->GetBodyList() ) {
 	printf("body left over %p\n",m_world->GetBodyList());
 	m_world->DestroyBody( m_world->GetBodyList() );	       
       }
+#endif
       //step is required to actually destroy bodies and joints
       m_world->Step( ITERATION_TIMESTEPf, SOLVER_ITERATIONS );
     }