Hi,

descrease allocated pool items counter after purging it

--
________________________________________
Maksym Veremeyenko

>From 4e98cb18f8041c2ea7c29fde934d2b0015baa04a Mon Sep 17 00:00:00 2001
From: Maksym Veremeyenko <ve...@m1.tv>
Date: Tue, 4 Nov 2014 13:15:08 +0200
Subject: [PATCH 2/3] descrease allocated pool items counter after purging it

---
 src/framework/mlt_pool.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/framework/mlt_pool.c b/src/framework/mlt_pool.c
index a865757..ddf4591 100644
--- a/src/framework/mlt_pool.c
+++ b/src/framework/mlt_pool.c
@@ -362,7 +362,10 @@ void mlt_pool_purge( )
 
 		// We'll free all unused items now
 		while ( ( release = mlt_deque_pop_back( self->stack ) ) != NULL )
+		{
 			mlt_free( ( char * )release - sizeof( struct mlt_release_s ) );
+			self->count--;
+		}
 
 		// Unlock the pool
 		pthread_mutex_unlock( &self->lock );
-- 
1.7.7.6

------------------------------------------------------------------------------
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to