diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2015-08-04 14:30:17 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2015-08-04 14:30:17 +0100 |
commit | 0e70f8c94f7fc64774fb8246626d4f11979c99ff (patch) | |
tree | f472f5842556e928704c265e1727adc03cea7ded /ext | |
parent | d3dbb69c8ea317eacd3e23100b063381dbe206db (diff) | |
download | gstreamer-plugins-bad-0e70f8c94f7fc64774fb8246626d4f11979c99ff.tar.gz |
opencv: facedetect: fix crashes in finalize
Fixes gst-inspect-1.0 -a crashing.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/opencv/gstfacedetect.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/ext/opencv/gstfacedetect.cpp b/ext/opencv/gstfacedetect.cpp index ea4f96d96..392846b9f 100644 --- a/ext/opencv/gstfacedetect.cpp +++ b/ext/opencv/gstfacedetect.cpp @@ -233,13 +233,13 @@ gst_face_detect_finalize (GObject * obj) g_free (filter->eyes_profile); if (filter->cvFaceDetect) - delete (&filter->cvFaceDetect); + delete (filter->cvFaceDetect); if (filter->cvNoseDetect) - delete (&filter->cvNoseDetect); + delete (filter->cvNoseDetect); if (filter->cvMouthDetect) - delete (&filter->cvMouthDetect); + delete (filter->cvMouthDetect); if (filter->cvEyesDetect) - delete (&filter->cvEyesDetect); + delete (filter->cvEyesDetect); G_OBJECT_CLASS (gst_face_detect_parent_class)->finalize (obj); } @@ -380,7 +380,7 @@ gst_face_detect_set_property (GObject * object, guint prop_id, case PROP_FACE_PROFILE: g_free (filter->face_profile); if (filter->cvFaceDetect) - delete (&filter->cvFaceDetect); + delete (filter->cvFaceDetect); filter->face_profile = g_value_dup_string (value); filter->cvFaceDetect = gst_face_detect_load_profile (filter, filter->face_profile); @@ -388,7 +388,7 @@ gst_face_detect_set_property (GObject * object, guint prop_id, case PROP_NOSE_PROFILE: g_free (filter->nose_profile); if (filter->cvNoseDetect) - delete (&filter->cvNoseDetect); + delete (filter->cvNoseDetect); filter->nose_profile = g_value_dup_string (value); filter->cvNoseDetect = gst_face_detect_load_profile (filter, filter->nose_profile); @@ -396,7 +396,7 @@ gst_face_detect_set_property (GObject * object, guint prop_id, case PROP_MOUTH_PROFILE: g_free (filter->mouth_profile); if (filter->cvMouthDetect) - delete (&filter->cvMouthDetect); + delete (filter->cvMouthDetect); filter->mouth_profile = g_value_dup_string (value); filter->cvMouthDetect = gst_face_detect_load_profile (filter, filter->mouth_profile); @@ -404,7 +404,7 @@ gst_face_detect_set_property (GObject * object, guint prop_id, case PROP_EYES_PROFILE: g_free (filter->eyes_profile); if (filter->cvEyesDetect) - delete (&filter->cvEyesDetect); + delete (filter->cvEyesDetect); filter->eyes_profile = g_value_dup_string (value); filter->cvEyesDetect = gst_face_detect_load_profile (filter, filter->eyes_profile); |