Commit b382aefa authored by Laurent Aimar's avatar Laurent Aimar

Fixed a crash in video filter_chain_t code when closing a filter.

It should fix #1929.
Thanks for Aurélien Nephtali investigation.
parent e5f96a40
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment