Wintermute Engine Forum
Wintermute Engine => Technical forum => WME sources discussion => Topic started by: jjsteele on November 23, 2009, 06:29:22 PM
-
In the function CAdPath::Reset() why are you looping round calling delete [] on the m_Points array? AFAIK the RemoveAll will delete everything and clean up the memory.
-
No, RemoveAll only cleans the collection, it will not delete the contained objects. However, it should be delete, not delete[], it's a bug. Well spotted.