[vlc-commits] vout/ios: fix leak

Thomas Guillem git at videolan.org
Tue Jul 30 10:54:41 CEST 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Mon Jul 29 15:18:28 2019 +0200| [3a868df5ebda8dd50274ad520cc37b8f05707fe5] | committer: Thomas Guillem

vout/ios: fix leak

This partially reverts commit 9db9c1121193c2a201eb37e9858a603509f684a6.

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

 modules/video_output/ios.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_output/ios.m b/modules/video_output/ios.m
index b5456cb3e8..2816476836 100644
--- a/modules/video_output/ios.m
+++ b/modules/video_output/ios.m
@@ -147,7 +147,7 @@ static int Open(vout_display_t *vd, const vout_display_cfg_t *cfg,
     if (vout_display_cfg_IsWindowed(cfg))
         return VLC_EGENERIC;
 
-    vout_display_sys_t *sys = calloc(1, sizeof(*sys));
+    vout_display_sys_t *sys = vlc_obj_calloc(vd, 1, sizeof(*sys));
 
     if (!sys)
         return VLC_ENOMEM;



More information about the vlc-commits mailing list