mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
facedetect: fix structure leak
https://bugzilla.gnome.org/show_bug.cgi?id=672294
This commit is contained in:
parent
0fad58c123
commit
362727b9f4
1 changed files with 2 additions and 1 deletions
|
@ -616,9 +616,10 @@ gst_face_detect_transform_ip (GstOpencvVideoFilter * base, GstBuffer * buf,
|
||||||
}
|
}
|
||||||
|
|
||||||
g_value_init (&facedata, GST_TYPE_STRUCTURE);
|
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);
|
gst_value_list_append_value (&facelist, &facedata);
|
||||||
g_value_unset (&facedata);
|
g_value_unset (&facedata);
|
||||||
|
s = NULL;
|
||||||
|
|
||||||
if (do_display) {
|
if (do_display) {
|
||||||
CvPoint center;
|
CvPoint center;
|
||||||
|
|
Loading…
Reference in a new issue