projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71c81a5
)
faceblur: release the haar cascade
author
Thiago Santos
<ts.santos@sisa.samsung.com>
Mon, 30 Jun 2014 14:54:41 +0000
(11:54 -0300)
committer
Thiago Santos
<ts.santos@sisa.samsung.com>
Mon, 30 Jun 2014 14:54:41 +0000
(11:54 -0300)
ext/opencv/gstfaceblur.c
patch
|
blob
|
history
diff --git
a/ext/opencv/gstfaceblur.c
b/ext/opencv/gstfaceblur.c
index
9c7d795
..
030b2d2
100644
(file)
--- a/
ext/opencv/gstfaceblur.c
+++ b/
ext/opencv/gstfaceblur.c
@@
-123,6
+123,8
@@
gst_face_blur_finalize (GObject * obj)
cvReleaseImage (&filter->cvGray);
cvReleaseMemStorage (&filter->cvStorage);
}
+ if (filter->cvCascade)
+ cvReleaseHaarClassifierCascade (&filter->cvCascade);
g_free (filter->profile);
@@
-312,6
+314,8
@@
gst_face_blur_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
static void
gst_face_blur_load_profile (GstFaceBlur * filter)
{
+ if (filter->cvCascade)
+ cvReleaseHaarClassifierCascade (&filter->cvCascade);
filter->cvCascade =
(CvHaarClassifierCascade *) cvLoad (filter->profile, 0, 0, 0);
if (!filter->cvCascade) {