From: Laurent Aimar Date: Sat, 21 Mar 2009 15:02:48 +0000 (+0100) Subject: Fixed a crash in video filter_chain_t code when closing a filter. X-Git-Tag: 1.0.0-pre2~433 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=b382aefa43ea208ff0bc2adab7014a1ceae63130;p=vlc Fixed a crash in video filter_chain_t code when closing a filter. It should fix #1929. Thanks for Aurélien Nephtali investigation. --- 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 )