From e77a93f6a843ebce028149ded5526033416e0f28 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 30 Jun 2014 00:22:22 +0200 Subject: [PATCH] segmentation: Release memory storage in finalize --- ext/opencv/gstsegmentation.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ext/opencv/gstsegmentation.cpp b/ext/opencv/gstsegmentation.cpp index 1f81fca..ec03b80 100644 --- a/ext/opencv/gstsegmentation.cpp +++ b/ext/opencv/gstsegmentation.cpp @@ -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); } -- 2.7.4