[vlc-commits] dxa9: fix hd3d_dll leaking
Steve Lhomme
git at videolan.org
Wed Jun 14 16:36:42 CEST 2017
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Wed Jun 14 15:48:50 2017 +0200| [973b339918c07676fd0329bd12c7b09ba157ad4e] | committer: Hugo Beauzée-Luyssen
dxa9: fix hd3d_dll leaking
CID #1444701
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=973b339918c07676fd0329bd12c7b09ba157ad4e
---
modules/video_chroma/dxa9.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/video_chroma/dxa9.c b/modules/video_chroma/dxa9.c
index 26dd5d6f92..611ef9b296 100644
--- a/modules/video_chroma/dxa9.c
+++ b/modules/video_chroma/dxa9.c
@@ -319,8 +319,10 @@ static int OpenConverter( vlc_object_t *obj )
}
filter_sys_t *p_sys = calloc(1, sizeof(filter_sys_t));
- if (!p_sys)
- return VLC_ENOMEM;
+ if (!p_sys) {
+ err = VLC_ENOMEM;
+ goto done;
+ }
CopyInitCache(&p_sys->cache, p_filter->fmt_in.video.i_width );
p_filter->p_sys = p_sys;
err = VLC_SUCCESS;
More information about the vlc-commits
mailing list