X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=interfaces%2Fswig%2Fpython%2Fhighgui.i;fp=interfaces%2Fswig%2Fpython%2Fhighgui.i;h=9eabc93c2d38c347271a17426f6a194c6460814e;hb=e4c14cdbdf2fe805e79cd96ded236f57e7b89060;hp=5cb9dccb03175943659d47d429164d2d1bc3c918;hpb=454138ff8a20f6edb9b65a910101403d8b520643;p=opencv diff --git a/interfaces/swig/python/highgui.i b/interfaces/swig/python/highgui.i index 5cb9dcc..9eabc93 100644 --- a/interfaces/swig/python/highgui.i +++ b/interfaces/swig/python/highgui.i @@ -55,6 +55,11 @@ %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 %{