[vlc-commits] gradfun: remove callback before destroying callback data

Rémi Denis-Courmont git at videolan.org
Wed Aug 31 23:02:54 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 31 19:56:07 2011 +0300| [05f6eeb5ddeb65f9402058cbba41f9c575a8d6c0] | committer: Rémi Denis-Courmont

gradfun: remove callback before destroying callback data

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=05f6eeb5ddeb65f9402058cbba41f9c575a8d6c0
---

 modules/video_filter/gradfun.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/video_filter/gradfun.c b/modules/video_filter/gradfun.c
index 118d469..3bde5bb 100644
--- a/modules/video_filter/gradfun.c
+++ b/modules/video_filter/gradfun.c
@@ -160,6 +160,8 @@ static void Close(vlc_object_t *object)
     filter_t     *filter = (filter_t *)object;
     filter_sys_t *sys = filter->p_sys;
 
+    var_DelCallback(filter, CFG_PREFIX "radius",   Callback, NULL);
+    var_DelCallback(filter, CFG_PREFIX "strength", Callback, NULL);
     free(sys->base_buf);
     vlc_mutex_destroy(&sys->lock);
     free(sys);



More information about the vlc-commits mailing list