handdetect: remove another unused 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:
Vanessa Chipirrás Navalón 2015-10-02 17:18:33 +01:00 committed by Luis de Bethencourt
parent e00461a789
commit 31b1938a5f
2 changed files with 0 additions and 8 deletions

View file

@ -161,8 +161,6 @@ gst_handdetect_finalize (GObject * obj)
if (filter->cvGray)
cvReleaseImage (&filter->cvGray);
if (filter->cvStorage)
cvReleaseMemStorage (&filter->cvStorage);
g_free (filter->profile_fist);
g_free (filter->profile_palm);
g_free (filter->best_r);
@ -387,10 +385,6 @@ gst_handdetect_set_caps (GstOpencvVideoFilter * transform,
filter->cvGray =
cvCreateImage (cvSize (in_width, in_height), IPL_DEPTH_8U, 1);
if (!filter->cvStorage)
filter->cvStorage = cvCreateMemStorage (0);
else
cvClearMemStorage (filter->cvStorage);
return TRUE;
}
@ -412,7 +406,6 @@ gst_handdetect_transform_ip (GstOpencvVideoFilter * transform,
if (filter->cvCascade_fist && filter->cvCascade_palm) {
/* cvt to gray colour space for hand detect */
cvCvtColor (img, filter->cvGray, CV_RGB2GRAY);
cvClearMemStorage (filter->cvStorage);
/* detect FIST gesture fist */
Mat roi (filter->cvGray, Rect (filter->cvGray->origin,

View file

@ -96,7 +96,6 @@ struct _GstHanddetect
IplImage *cvGray;
cv::CascadeClassifier *cvCascade_fist;
cv::CascadeClassifier *cvCascade_palm;
CvMemStorage *cvStorage;
cv::Rect *prev_r;
cv::Rect *best_r;
};