Merge pull request #8156 from nh2/kd-tree-shrink-to-fit

kd-tree: Deallocate Point pointer vector after build().
This commit is contained in:
Laurent Rineau 2024-04-25 12:04:44 +02:00
commit d2ba8e2f56
1 changed files with 1 additions and 0 deletions

View File

@ -370,6 +370,7 @@ public:
pts.swap(ptstmp);
data.clear();
data.shrink_to_fit();
built_ = true;
}