This should fix the warnings and the memory leaks in two locations.
However, I am not sure how I should go about freeing the memory in find_parametric_bezier_roots() in solve-bezier-parametric.cpp. It is a recursive function that takes the allocated arrays as parameters.
This should fix the warnings and the memory leaks in two locations.
However, I am not sure how I should go about freeing the memory in find_parametric _bezier_ roots() in solve-bezier- parametric. cpp. It is a recursive function that takes the allocated arrays as parameters.
Can someone please take a look at this function.