bug in CollisionProcessing demo

I am working on delphi translation of version 2.1.0 and found this bug which will raise an exception of "Redestroying object".
BTW, the delphi translation of 2.1.0 is finished. Will new features be added to SVN? If not I wish I could release a preview version
of Delphi package before you formally release box2D 2.1.0.

I reported this bug to google SVN. And the following is the bug report.
What steps will reproduce the problem?
1. Start CollisionProcessing demo
2. Press space and launch bomb twice
3.

What is the expected output? What do you see instead?
The second bomb won't appear.

What version of the product are you using? On what operating system?
2.1.0

Please provide any additional information below.
This is because the m_bomb object may be destroyed by Step of CollisionProcessing in the code block,
while (i < nukeCount)
{
b2Body* b = nuke[i++];
while (i < nukeCount && nuke[i] == b)
{
++i;
}

m_world->DestroyBody(b);
}
Solution: change to
while (i < nukeCount)
{
b2Body* b = nuke[i++];
while (i < nukeCount && nuke[i] == b)
{
++i;
}
if (b != m_bomb)
m_world->DestroyBody(b);
}
Thanks for the report.

Once 2.1 is out, you can attach your port to a Google code issue and I will put it into the contributions folder.

Original thread: https://box2d.org/forum/viewtopic.php?t=4640