From b382aefa43ea208ff0bc2adab7014a1ceae63130 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Sat, 21 Mar 2009 16:02:48 +0100 Subject: [PATCH] Fixed a crash in video filter_chain_t code when closing a filter. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It should fix #1929. Thanks for Aurélien Nephtali investigation. --- src/misc/filter_chain.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/misc/filter_chain.c b/src/misc/filter_chain.c index 0805d40289..7061c929f2 100644 --- a/src/misc/filter_chain.c +++ b/src/misc/filter_chain.c @@ -420,7 +420,10 @@ static int filter_chain_DeleteFilterInternal( filter_chain_t *p_chain, p_filter->psz_object_name, p_filter ); /* Destroy the filter object */ - AllocatorClean( &p_chain->allocator, p_filter ); + if( IsInternalVideoAllocator( p_filter ) ) + AllocatorClean( &internal_video_allocator, p_filter ); + else + AllocatorClean( &p_chain->allocator, p_filter ); vlc_object_detach( p_filter ); if( p_filter->p_module ) -- 2.39.2