Project: datamanagement
Issue DM-4408: HSC backport: fix memory leak in afw:geom:polygon
This is a backport of a bug fix that got included as part of [HSC-1311|https://hsc-jira.astro.princeton.edu/jira/browse/HSC-1311]. It is not related to that issue in particular, so is being ported here as an isolated bug fix. {panel} Original commit message: pprice@tiger-sumire:/tigress/pprice/hsc-1311/afw (tickets/HSC-1311=) $ git sub commit 55ad42d37fd1346f8ebc11e4077366dff4eaa87b Author: Paul Price Date: Wed Oct 21 10:59:56 2015 -0400 imageLib: import polygonLib to prevent memory leak When doing "exposure.getInfo().getValidPolygon()", was getting: swig/python detected a memory leak of type 'boost::shared_ptr< lsst::afw::geom::polygon::Polygon > *', no destructor found. This was due to the polygonLib not being imported in imageLib. Using polygonLib in imageLib then requires adding polygon.h to all the swig interface files that use imageLib.i. examples/testSpatialCellLib.i | 1 + python/lsst/afw/cameraGeom/cameraGeomLib.i | 1 + python/lsst/afw/detection/detectionLib.i | 1 + python/lsst/afw/display/displayLib.i | 1 + python/lsst/afw/geom/polygon/Polygon.i | 1 + python/lsst/afw/image/imageLib.i | 2 ++ python/lsst/afw/math/detail/detailLib.i | 1 + python/lsst/afw/math/mathLib.i | 1 + 8 files changed, 9 insertions(+) {panel}
Story points: 1