handdetect: Release memory storage

This commit is contained in:
Sebastian Dröge 2014-06-30 00:09:28 +02:00
parent ae1027297c
commit e1366c29be

View file

@ -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);