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;