title: OpenCV Python QueryFrame function leaks memory
body: <p>I'm using the <code>Python</code> interface for <code>OpenCV 2.2.0</code>. The following code works correctly for grabbing frames from a video file:</p>
  
  <pre><code>for f in range(1, frameCount):
      # grab the left and right frames
      frameL = cv.QueryFrame(videoL)
      frameR = cv.QueryFrame(videoR)
      # create the image for the first frame
      if f==1:
          imageL = cv.CreateImage(cv.GetSize(frameL), frameL.depth, frameL.channels)
          imageR = cv.CreateImage(cv.GetSize(frameR), frameR.depth, frameR.channels)
      # update the images
      cv.Copy(frameL, imageL)
      cv.Copy(frameR, imageR)
  </code></pre>
  
  <p>However, as I process more video frames, the memory consumption keeps increasing. According to the OpenCV documentation, we don't need to release the memory for the image data obtained by <code>cv.QueryFrame</code>. Is this still correct? I tried "del frameL" and "del frameR", but it didn't solve the problem. Is there a bug in the Python wrapper for OpenCV in this particular function?</p>
  
  <p>Thanks.</p>