final void release ( ) { try { stopCapture ( ) ; } catch ( StateException se ) { //capture already stopped } state . release ( ) ; doRelease ( object ) ; state . commit ( ) ; }
This method releases resources used by the FrameCapture object .