Please login or register.

Login with username, password and session length
Advanced search  


This forum provides RSS feed. To query recent posts use this url. More...

Author Topic: Strange behaviour in AdPath.cpp  (Read 8605 times)

0 Members and 1 Guest are viewing this topic.


  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 8
    • View Profile
Strange behaviour in AdPath.cpp
« 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.


  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Strange behaviour in AdPath.cpp
« Reply #1 on: November 23, 2009, 07:08:02 PM »

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.
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Page created in 0.019 seconds with 20 queries.