]> git.sesse.net Git - vlc/commitdiff
Fixed a crash in video filter_chain_t code when closing a filter.
authorLaurent Aimar <fenrir@videolan.org>
Sat, 21 Mar 2009 15:02:48 +0000 (16:02 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 22 Mar 2009 11:26:47 +0000 (12:26 +0100)
It should fix #1929.
Thanks for AurĂ©lien Nephtali investigation.

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 )