MapXL / route-me

Automatically exported from code.google.com/p/route-me
0 stars 0 forks source link

RMPath leaks and uses unnecesary memory #124

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It can be reproduced by simply releasing a RMPath. It holds a
NSMutableArray called "points" that seems to be legacy from before
CGMutablePath was used. Every point added to the path is also added to the
points array, although it is never used. This uses unnecessary memory. On
top of that the array is never released - leading to memory leaks.

Original issue reported on code.google.com by andrei.g...@gmail.com on 16 Dec 2009 at 11:13

GoogleCodeExporter commented 8 years ago
I removed the unused points array. Thank for pointing this.

Original comment by vladimir...@gmail.com on 9 Feb 2010 at 10:41