diff --git a/src/SceneGraph/FeatureGroup.h b/src/SceneGraph/FeatureGroup.h index 8a8ddeff3..ad1a94bbb 100644 --- a/src/SceneGraph/FeatureGroup.h +++ b/src/SceneGraph/FeatureGroup.h @@ -47,13 +47,10 @@ class FeatureGroup { /** * @brief Destructor * - * Deletes all features belogning to this group. + * Removes all features belogning to this group, but not deletes them. */ inline virtual ~FeatureGroup() { - for(auto i: features) { - i->_group = nullptr; - delete i; - } + for(auto i: features) i->_group = nullptr; } /** @brief Whether the group is empty */