]> git.sesse.net Git - vlc/blobdiff - src/misc/filter_chain.c
Fixed a crash in video filter_chain_t code when closing a filter.
[vlc] / src / misc / filter_chain.c
index 0805d40289005f0e5439ec94e85c8e7594a9aed9..7061c929f20018c68a2cfffe20711c263fd692ae 100644 (file)
@@ -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 )