mirror of https://github.com/CGAL/cgal
Merge pull request #8156 from nh2/kd-tree-shrink-to-fit
kd-tree: Deallocate Point pointer vector after build().
This commit is contained in:
commit
d2ba8e2f56
|
|
@ -370,6 +370,7 @@ public:
|
|||
pts.swap(ptstmp);
|
||||
|
||||
data.clear();
|
||||
data.shrink_to_fit();
|
||||
|
||||
built_ = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue