Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Memory leak in snap_rounding_2?

Subject: CGAL users discussion list

List archive

[cgal-discuss] Memory leak in snap_rounding_2?


Chronological Thread 
  • From: Steven <>
  • To:
  • Subject: [cgal-discuss] Memory leak in snap_rounding_2?
  • Date: Mon, 21 Oct 2013 18:33:28 -0700 (PDT)

First of all, please note that I am in the first place developing in C#, and
only just started maintenance work on a native C++ library which uses CGAL.
So please bear with me if I'm missing something obvious.

The problem I believe to have located is the /Multiple_kd_tree *
mul_kd_tree/ in the snap_rounding_2 constructor. This tree gets created in
/s.find_hot_pixels_and_create_kd_trees/, is used by /s.iterate/, but
immediately after that the constructor ends. This means that the
Multiple_kd_tree, nor any of its children, get freed.

I would appreciate it if someone with more C++ experience than me could take
a look at this, to confirm if I managed to locate the issue correctly. Also,
if possible, please advise on how i can correct this problem.

Thank you,
Steven



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Memory-leak-in-snap-rounding-2-tp4658264.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page