0 Views
0 Downloads
0 Favorites
MemoryLeak
#include <checker_for_memory_leaks.mqh>

//+------------------------------------------------------------------+
//| Simple class CA without any content                              |
//+------------------------------------------------------------------+
class CA {};
void OnStart()
  {
   CA *a;
   a = new CA;
   if(a == NULL)
     {
      Print("NULL Pointer!");
      return;
     }
// 'forget' to call the delete operator'
// delete a;
  }
//+------------------------------------------------------------------+

Comments