[vlc-commits] directx_va: Fix leak
Hugo Beauzée-Luyssen
git at videolan.org
Tue Mar 20 15:21:58 CET 2018
vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Mar 20 14:28:01 2018 +0100| [86fad2ffde0d10fe27763d925d5229680a1995c3] | committer: Hugo Beauzée-Luyssen
directx_va: Fix leak
(cherry picked from commit f7b42ed697816cafb0f5ea69a8b359e8b9e155a0)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=86fad2ffde0d10fe27763d925d5229680a1995c3
---
modules/codec/avcodec/directx_va.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/modules/codec/avcodec/directx_va.c b/modules/codec/avcodec/directx_va.c
index a6bcac3537..0c62644581 100644
--- a/modules/codec/avcodec/directx_va.c
+++ b/modules/codec/avcodec/directx_va.c
@@ -424,8 +424,12 @@ static int FindVideoServiceConversion(vlc_va_t *va, directx_sys_t *dx_sys,
{
is_supported = profile_supported( mode, fmt, avctx );
if (!is_supported)
+ {
+ char *psz_name = directx_va_GetDecoderName(mode->guid);
msg_Warn( va, "Unsupported profile %d for %s ",
- fmt->i_profile, directx_va_GetDecoderName(mode->guid) );
+ fmt->i_profile, psz_name );
+ free( psz_name );
+ }
}
if (!is_supported)
continue;
More information about the vlc-commits
mailing list