[vlc-commits] Gradfun: do not crash on exit on Win32

Jean-Baptiste Kempf git at videolan.org
Thu Mar 1 12:28:03 CET 2012


vlc/vlc-2.0 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Mar  1 11:12:20 2012 +0100| [d72cab6583b67dfa6ecdd4f92053cd3210dc7aa8] | committer: Jean-Baptiste Kempf

Gradfun: do not crash on exit on Win32

vlc_memalign data should be vlc_free'd

Close #6114 #6280
(cherry picked from commit 35d2292855c399fcbcc5ef6116580db2350060f7)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/modules/video_filter/gradfun.c b/modules/video_filter/gradfun.c
index 4a35f33..5c0eb07 100644
--- a/modules/video_filter/gradfun.c
+++ b/modules/video_filter/gradfun.c
@@ -161,7 +161,7 @@ static void Close(vlc_object_t *object)
 
     var_DelCallback(filter, CFG_PREFIX "radius",   Callback, NULL);
     var_DelCallback(filter, CFG_PREFIX "strength", Callback, NULL);
-    free(sys->cfg.buf);
+    vlc_free(sys->cfg.buf);
     vlc_mutex_destroy(&sys->lock);
     free(sys);
 }



More information about the vlc-commits mailing list