Update to 2.0.0 tree from current Fremantle build
[opencv] / interfaces / swig / python / highgui.i
index 5cb9dcc..9eabc93 100644 (file)
 %include "./nointpb.i"
 %include "./pytypemaps.i"
 %include "exception.i"
+%include "cvswigmacros.i"
+
+// handle camera and video writer destruction
+%myrelease(highgui, cvReleaseCapture, CvCapture);
+%myrelease(highgui, cvReleaseVideoWriter, CvVideoWriter);
 
 /* the wrapping code to enable the use of Python-based mouse callbacks */
 %header %{