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

Jean-Baptiste Kempf git at videolan.org
Thu Mar 1 11:13:24 CET 2012


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

Gradfun: do not crash on exit on Win32

vlc_memalign data should be vlc_free'd

Close #6114 #6280

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

 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 39358af..98d9860 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