diff options
-rw-r--r-- | ext/opencv/gsthanddetect.c | 6 | ||||
-rw-r--r-- | ext/opencv/gsthanddetect.h | 1 |
2 files changed, 0 insertions, 7 deletions
diff --git a/ext/opencv/gsthanddetect.c b/ext/opencv/gsthanddetect.c index f06b0c262..c4dd39034 100644 --- a/ext/opencv/gsthanddetect.c +++ b/ext/opencv/gsthanddetect.c @@ -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; } diff --git a/ext/opencv/gsthanddetect.h b/ext/opencv/gsthanddetect.h index aafe1ad87..01a30bdc5 100644 --- a/ext/opencv/gsthanddetect.h +++ b/ext/opencv/gsthanddetect.h @@ -95,7 +95,6 @@ struct _GstHanddetect CvHaarClassifierCascade *cvCascade_fist; CvHaarClassifierCascade *cvCascade_palm; CvMemStorage *cvStorage; - CvMemStorage *cvStorage_palm; CvRect *prev_r; CvRect *best_r; }; |