title: Running OpenCV application for long length of time
body: <p>I have an openCV application that tracks 3 different colours and draws lines between where it is tracking. I have to keep this application running for a few hours but after about 40 minutes it tells me my <strong>mac osx start up disk has no more space available for application memory</strong>. Is there a way to flush the memory so that I can keep this running?</p>
  
  <pre><code>IplImage* imgYellowThresh1 = GetThresholdedImage1(frame,1);
  
  double moment10 = cvGetSpatialMoment(moments_yellow, 1, 0);
  double moment01 = cvGetSpatialMoment(moments_yellow, 0, 1);
  double area = cvGetCentralMoment(moments_yellow, 0, 0);
  </code></pre>
  
  <p>so I do this for 2 other colours, add then to the frame </p>
  
  <pre><code>cvReleaseImage(&amp;imgYellowThresh1);
  delete moments_yellow;
  </code></pre>