opencv: fix memory leak

https://bugzilla.gnome.org/show_bug.cgi?id=672295
This commit is contained in:
Nicola Murino 2012-03-17 15:09:21 +01:00 committed by Tim-Philipp Müller
parent 6f3ea8e67b
commit 0fad58c123

View file

@ -122,6 +122,8 @@ gst_opencv_video_filter_finalize (GObject * obj)
if (transform->cvImage)
cvReleaseImage (&transform->cvImage);
if (transform->out_cvImage)
cvReleaseImage (&transform->out_cvImage);
G_OBJECT_CLASS (parent_class)->finalize (obj);
}