Fix crash storing pointer to polygon on stack
Fix crash storing pointer to polygon on stack

This function ends, so the copy of the polygon that was on the stack is no longer accessible.
We shouldn't make a copy of these polygons anyway, unless it's for combining the polygons.

Contributes to issue CURA-7828.

Ultimaker/CuraEngine,Ultimaker/CuraEngine