Commit 088192e4 authored by Dennis Nienhüser's avatar Dennis Nienhüser
Browse files

Fix memory leak: When removing last unused polygon, delete it.

parent 94d35d22
......@@ -513,6 +513,7 @@ bool AzimuthalProjectionPrivate::lineStringToPolygon( const GeoDataLineString &l
if ( polygons.last()->size() <= 1 ){
delete polygons.last();
polygons.pop_back(); // Clean up "unused" empty polygon instances
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment