object of type CArrayString left

Anamaraf  

Hello,

I am new in MT5 and I am struggling with the deletion of an object.

If I do not delete it I become following error:

1 undeleted objects left
1 object of type CArrayString left
128 bytes of leaked memory

And when I try to use the delete statement, I become following compiler error:

'm_events_log' - object pointer expected.

Can somebody give me a hint? 

#include <Arrays\ArrayString.mqh>

CArrayString m_events_log;

void OnStart()
  {
   m_events_log = new CArrayString();

   delete m_events_log;
  }




Anamaraf  
Paul, thanks a lot!!
Paul Anscombe  
Anamaraf #:
Paul, thanks a lot!!

you are welcome

Reason: