Disconnect collision shape signals on list clear


When the collision shape list is cleared in the abstract physics node
the callbacks also need to be cleared. The shape's needsRebuild
signal was still connected to the destroyed physics node causing a
segmentation fault.

Fixes: QTBUG-114111
Pick-to: 6.5 6.5.2 6.6
Change-Id: I6730331414429150ab12bedb43be03f3388949f6
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
commit6ed5c96605951826c51c5fefd8300544fdd25dcb
parent3e605921fde27bbad319bdfcdaf3e78c4e70eb63
authorJonas Karlsson <jonas.karlsson@qt.io>
committerJonas Karlsson <jonas.karlsson@qt.io>
commit timeMon, 26 Jun 2023 16:31:38 +0200