Put that ReleaseCapture call just _before_ return, not after!