Skip to content

GEOS 3.8 compile fix#1497

Closed
remoe wants to merge 1 commit intopelicanmapping:masterfrom
remoe:patch-13
Closed

GEOS 3.8 compile fix#1497
remoe wants to merge 1 commit intopelicanmapping:masterfrom
remoe:patch-13

Conversation

@remoe
Copy link
Copy Markdown
Contributor

@remoe remoe commented Apr 19, 2020

fix for #1455 and #1378
for osgEarth 3.0

}
#if GEOS_VERSION_AT_LEAST(3,8)
geom::CoordinateSequence::Ptr seq = factory->create(coords);
return seq.get();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems wrong. Ptr is a unique_ptr so the memory will be freed up as soon as the function is returned.
This function would be returning freed up memory.

seq.release is probably what would work here but there migh be a memory leak

@jasonbeverage
Copy link
Copy Markdown
Member

jasonbeverage commented Sep 5, 2020 via email

@remoe remoe closed this Sep 6, 2020
@remoe remoe deleted the patch-13 branch August 20, 2021 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants