--- branches/development/src/selection/HullFinder.cpp 2013/02/20 15:39:39 1850 +++ branches/development/src/selection/HullFinder.cpp 2013/04/29 17:53:48 1867 @@ -88,6 +88,10 @@ namespace OpenMD { #endif } + HullFinder::~HullFinder() { + delete surfaceMesh_; + } + OpenMDBitSet HullFinder::findHull() { Snapshot* currSnapshot = info_->getSnapshotManager()->getCurrentSnapshot(); OpenMDBitSet bsResult(nStuntDoubles_); @@ -97,9 +101,9 @@ namespace OpenMD { sprintf( painCave.errMsg, "HullFinder : Hull calculation is not possible without libqhull.\n" "\tPlease rebuild OpenMD with qhull enabled."); - painCave.severity = OPENMD_ERROR; - painCave.isFatal = 1; - simError(); + painCave.severity = OPENMD_ERROR; + painCave.isFatal = 1; + simError(); #endif std::vector sMesh = surfaceMesh_->getMesh();