vlc | branch: master | Hugo Beauzée-Luyssen <[email protected]> | Mon Aug 21 14:53:56 2017 +0200| [6329e2c506e8ac6aeb74b01dcc4a39abc6e103a2] | committer: Hugo Beauzée-Luyssen
i420_nv12: Fix leak > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6329e2c506e8ac6aeb74b01dcc4a39abc6e103a2 --- modules/video_chroma/i420_nv12.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/video_chroma/i420_nv12.c b/modules/video_chroma/i420_nv12.c index 19bfb1c923..0fb574db3b 100644 --- a/modules/video_chroma/i420_nv12.c +++ b/modules/video_chroma/i420_nv12.c @@ -89,7 +89,8 @@ static int Create( vlc_object_t *p_this ) return -1; } - filter_sys_t *p_sys = calloc(1, sizeof(filter_sys_t)); + filter_sys_t *p_sys = vlc_malloc( VLC_OBJECT( p_filter ), + sizeof(filter_sys_t) ); if (!p_sys) return VLC_ENOMEM; _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
