Joints destroyed automatically

Hi,

Do I have to destroy joints, or do they get automatically destroyed once one of the attached bodies is destroyed?

Regards

i
http://www.box2d.org/manual.html

Quote:
When you destroy a body, the attached fixtures and joints are automatically destroyed. This has important implications for how you manage shape and joint pointers.

The lifetime of a joint is not simple. Heed this warning well:
Caution
Joints are destroyed when an attached body is destroyed.
This precaution is not always necessary. You may organize your game engine so that joints are always destroyed before the attached bodies. In this case you don't need to implement the listener class. See the section on Implicit Destruction for details.

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