[vlc-devel] commit: Fix potential crash (missing var_DelCallback). ( Rémi Duraffort )
git version control
git at videolan.org
Fri Jun 26 09:30:17 CEST 2009
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Jun 26 09:29:55 2009 +0200| [d1d7e1a92dfc8eff9d51aed3d4cd9debd5a425ff] | committer: Rémi Duraffort
Fix potential crash (missing var_DelCallback).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d1d7e1a92dfc8eff9d51aed3d4cd9debd5a425ff
---
.../video_filter/dynamicoverlay/dynamicoverlay.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/video_filter/dynamicoverlay/dynamicoverlay.c b/modules/video_filter/dynamicoverlay/dynamicoverlay.c
index 6ab22e6..9b769f5 100644
--- a/modules/video_filter/dynamicoverlay/dynamicoverlay.c
+++ b/modules/video_filter/dynamicoverlay/dynamicoverlay.c
@@ -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 );
More information about the vlc-devel
mailing list