2D: Fix memory leaks with QPieSlicePrivate
When a pieslice is rendered, its dynamically allocated private api
members are parented to pierenderer. When the pierenderer gets
destroyed, the parented slice members are freed. However, if the slice
is never rendered those members aren't parented to the pierenderer.
Change the labelItem, shapePath, labelShape, and labelPath to be
QPointers. In the PieSlicePrivate dtor, delete them if they are not
parented.
Pick-to: 6.12 6.11.3
Change-Id: I149c7aaba35333e5a523dcbd7ab6ded526cd4742
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Owais Akhtar <owais.akhtar@qt.io>