You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Accessing a sub-geometry after its parent has been destroyed causes a segfault. The sub-geometry should either keep a strong reference on its parent (may lead to unexpected behavior somewhere?) or the parent should invalidate references to its children on destruction.
I don't see a particular issue in trying to keep alive the parent in GetGeometryRef().
Not sure if you're aware of it, but ther are complications regarding life-time of geometries with RemoveGeometry(). But that's a more advanced/rare use case than the one of g.Buffer(1).GetGeometryRef(0), so it could be left aside
What is the bug?
Accessing a sub-geometry after its parent has been destroyed causes a segfault. The sub-geometry should either keep a strong reference on its parent (may lead to unexpected behavior somewhere?) or the parent should invalidate references to its children on destruction.
Steps to reproduce the issue
Versions and provenance
master
Additional context
No response
The text was updated successfully, but these errors were encountered: