Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qgsquadrilateral: Fix memory leak in area and polygon calls
The toPolygon() call releases the unique_ptr, the `QgsPolygon` object needs to be deleted. This achieved by using a `std::unique_ptr` which automatically frees the polygon at the end of the function.
- Loading branch information