Tests: Avoid memory leaks
Use std::unique_ptr to keep track of owned shapes. Also, output the
error message if QQmlComponent fails to load.
Change-Id: I9d3b783ab11c94cc767b7d715077079c36b9f841
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
| commit | fccc95ffb1756e94eb89cfb043e65cf2445fb286 |
| parent | 30bea07e2f097c7abc76023834bdf1743613a4c9 |
| author | Ulf Hermann <ulf.hermann@qt.io> |
| committer | Ulf Hermann <ulf.hermann@qt.io> |
| commit time | Thu, 8 Jan 2026 11:05:53 +0100 |
- M tests/auto/lottie/shape/repeater/tst_lottierepeater.cpp
- M tests/auto/lottie/shape/repeatertransform/tst_lottierepeatertransform.cpp
- M tests/auto/lottie/shape/shapelayer/tst_lottieshapelayer.cpp
- M tests/auto/lottie/shape/shapetransform/tst_lottieshapetransform.cpp
- M tests/auto/lottie/shape/trimpath/tst_lottietrimpath.cpp
- M tests/auto/lottie/vectorimage/tst_vectorimage.cpp