MachoChen / recastnavigation

Automatically exported from code.google.com/p/recastnavigation
zlib License
0 stars 0 forks source link

memory leak at rcBuildPolyMesh() function #126

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi there, 
   I just found the temprary allocated memory holds by 'unsigned short* polys' had never been released at anywhere in function 'rcBuildPolyMesh()', and that caused some memory leaks in my test. 
   Hopes that I'm right about this...or...sorry for this interruption if you've covered this already...still, thanks a lot for this gorgeous project~

Original issue reported on code.google.com by Jin...@gmail.com on 29 Sep 2010 at 1:18

GoogleCodeExporter commented 8 years ago
Which version are you using?
The latest version in SVN (which you should use) allocates the memory like this:

rcScopedDelete<unsigned short> polys

This releases the memory when the scope of the function ends.

Original comment by memono...@gmail.com on 29 Sep 2010 at 1:32

GoogleCodeExporter commented 8 years ago
oh...I got version 1.4, I'll check out the version you suggested, thanks man~

Original comment by Jin...@gmail.com on 29 Sep 2010 at 4:27

GoogleCodeExporter commented 8 years ago

Original comment by memono...@gmail.com on 10 Oct 2010 at 10:02