Fix potential crash (missing var_DelCallback).
authorRémi Duraffort <ivoire@videolan.org>
Fri, 26 Jun 2009 07:29:55 +0000 (09:29 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Fri, 26 Jun 2009 07:29:55 +0000 (09:29 +0200)
modules/video_filter/dynamicoverlay/dynamicoverlay.c

index 6ab22e6..9b769f5 100644 (file)
@@ -144,6 +144,9 @@ static void Destroy( vlc_object_t *p_this )
     ListDestroy( &p_sys->overlays );
     UnregisterCommand( p_filter );
 
+    var_DelCallback( p_filter, "overlay-input", AdjustCallback, p_sys );
+    var_DelCallback( p_filter, "overlay-output", AdjustCallback, p_sys );
+
     free( p_sys->psz_inputfile );
     free( p_sys->psz_outputfile );
     free( p_sys );