[vlc-commits] ci_filters: fix cvpx buffer leak

Thomas Guillem git at videolan.org
Tue Sep 12 11:35:59 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Sep 12 11:15:24 2017 +0200| [5922bdb314502ab91dafb0eb3ae546f5f248099c] | committer: Thomas Guillem

ci_filters: fix cvpx buffer leak

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

 modules/video_filter/ci_filters.m | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/video_filter/ci_filters.m b/modules/video_filter/ci_filters.m
index 6f39000803..4e758bc7aa 100644
--- a/modules/video_filter/ci_filters.m
+++ b/modules/video_filter/ci_filters.m
@@ -312,6 +312,7 @@ Filter(filter_t *filter, picture_t *src)
         CFRelease(cvpx);
         goto error;
     }
+    CFRelease(cvpx);
 
     CIImage *ci_img = [CIImage imageWithCVImageBuffer: cvpxpic_get_ref(src)];
     if (!ci_img)
@@ -427,6 +428,7 @@ CVPX_buffer_new(filter_t *converter)
         CFRelease(cvpx);
         return NULL;
     }
+    CFRelease(cvpx);
 
     return pic;
 }



More information about the vlc-commits mailing list