[vlc-commits] chroma: cvpx: fix copy cache leak

Thomas Guillem git at videolan.org
Wed Apr 18 13:42:59 CEST 2018


vlc/vlc-3.0 | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Apr 18 13:37:08 2018 +0200| [b33c16c1f081beece83fff832a4873d4915878a1] | committer: Thomas Guillem

chroma: cvpx: fix copy cache leak

(cherry picked from commit 8cd66d98c661fea3e4710f94c27fbd71c5290c3d)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 modules/video_chroma/cvpx.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/video_chroma/cvpx.c b/modules/video_chroma/cvpx.c
index 1f001a04fe..c0aa0d66e1 100644
--- a/modules/video_chroma/cvpx.c
+++ b/modules/video_chroma/cvpx.c
@@ -228,6 +228,8 @@ static void Close(vlc_object_t *obj)
 
     if (p_sys->pool != NULL)
         CVPixelBufferPoolRelease(p_sys->pool);
+
+    CopyCleanCache(&p_sys->sw.cache);
     free(p_sys);
 }
 



More information about the vlc-commits mailing list