facedetect: fix structure leak

https://bugzilla.gnome.org/show_bug.cgi?id=672294
This commit is contained in:
Nicola Murino 2012-03-18 00:51:32 +00:00 committed by Tim-Philipp Müller
parent 0fad58c123
commit 362727b9f4

View file

@ -616,9 +616,10 @@ gst_face_detect_transform_ip (GstOpencvVideoFilter * base, GstBuffer * buf,
}
g_value_init (&facedata, GST_TYPE_STRUCTURE);
gst_value_set_structure (&facedata, s);
g_value_take_boxed (&facedata, s);
gst_value_list_append_value (&facelist, &facedata);
g_value_unset (&facedata);
s = NULL;
if (do_display) {
CvPoint center;