mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
handdetect: remove unnecessary variable.
Memory is reserved for this variable and then released without making any use of it. https://bugzilla.gnome.org/show_bug.cgi?id=752528
This commit is contained in:
parent
fc03a17430
commit
7dd86c26b2
2 changed files with 0 additions and 7 deletions
|
@ -162,8 +162,6 @@ gst_handdetect_finalize (GObject * obj)
|
|||
cvReleaseImage (&filter->cvGray);
|
||||
if (filter->cvStorage)
|
||||
cvReleaseMemStorage (&filter->cvStorage);
|
||||
if (filter->cvStorage_palm)
|
||||
cvReleaseMemStorage (&filter->cvStorage_palm);
|
||||
g_free (filter->profile_fist);
|
||||
g_free (filter->profile_palm);
|
||||
|
||||
|
@ -382,10 +380,6 @@ gst_handdetect_set_caps (GstOpencvVideoFilter * transform,
|
|||
filter->cvStorage = cvCreateMemStorage (0);
|
||||
else
|
||||
cvClearMemStorage (filter->cvStorage);
|
||||
if (!filter->cvStorage_palm)
|
||||
filter->cvStorage_palm = cvCreateMemStorage (0);
|
||||
else
|
||||
cvClearMemStorage (filter->cvStorage_palm);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -95,7 +95,6 @@ struct _GstHanddetect
|
|||
CvHaarClassifierCascade *cvCascade_fist;
|
||||
CvHaarClassifierCascade *cvCascade_palm;
|
||||
CvMemStorage *cvStorage;
|
||||
CvMemStorage *cvStorage_palm;
|
||||
CvRect *prev_r;
|
||||
CvRect *best_r;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue