diff --git a/pcbnew/drc/drc_rtree.h b/pcbnew/drc/drc_rtree.h index fe853b5429..5d979ba87b 100644 --- a/pcbnew/drc/drc_rtree.h +++ b/pcbnew/drc/drc_rtree.h @@ -79,7 +79,12 @@ public: ~DRC_RTREE() { for( auto tree : m_tree ) + { + for( auto el : *tree ) + delete el; + delete tree; + } } /**