diff --git a/ext/opencv/gsthanddetect.c b/ext/opencv/gsthanddetect.c index 0b3eef3ea8..1127296da5 100644 --- a/ext/opencv/gsthanddetect.c +++ b/ext/opencv/gsthanddetect.c @@ -160,6 +160,10 @@ gst_handdetect_finalize (GObject * obj) cvReleaseImage (&filter->cvImage); if (filter->cvGray) 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);