segmentation: Release memory storage in finalize
authorSebastian Dröge <sebastian@centricular.com>
Sun, 29 Jun 2014 22:22:22 +0000 (00:22 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Sun, 29 Jun 2014 22:22:22 +0000 (00:22 +0200)
ext/opencv/gstsegmentation.cpp

index 1f81fca..ec03b80 100644 (file)
@@ -360,6 +360,8 @@ gst_segmentation_release_all_pointers (GstSegmentation * filter)
   cvReleaseImage (&filter->ch2);
   cvReleaseImage (&filter->ch3);
 
+  cvReleaseMemStorage (&filter->mem_storage);
+
   g_free (filter->TcodeBook);
   finalise_mog (filter);
 }