Fix memleak when animation's target can't be found


animation nodes added to QSvgAbstractAnimator's m_animationsCSS and
m_animationsSMIL are deleted by the class' destructor. Before
2359035751142a402e3b639de5f8b20e52314eda, all created animation nodes
were added to those members. After that change, only nodes with an
actual target were added but remaining ones were not deleted properly.

Credit to OSS-Fuzz which found this as issue 456050169.

Pick-to: 6.10
Change-Id: I760562c9b92ea6c58d2e41acde1ad5a63591abec
Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
commit397fc90aa05dcbdd7984f53a2908978cf4a73735
parent18a2e2a17b085b08df69ae3c860bad64284df1aa
authorRobert Löhning <robert.loehning@qt.io>
committerRobert Löhning <robert.loehning@qt.io>
commit timeWed, 5 Nov 2025 10:41:44 +0100