vlc/vlc-3.0 | branch: master | Steve Lhomme <[email protected]> | Tue Mar 20 
10:01:55 2018 +0100| [5fd24be0e971fc8f969e57db4d7d155ad291af4c] | committer: 
Hugo Beauzée-Luyssen

dxva2: fix a leak on error

(cherry picked from commit bd5d9356c9f63e2cc38934aaea422f10a79368a0)
Signed-off-by: Hugo Beauzée-Luyssen <[email protected]>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=5fd24be0e971fc8f969e57db4d7d155ad291af4c
---

 modules/codec/avcodec/dxva2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/avcodec/dxva2.c b/modules/codec/avcodec/dxva2.c
index 87f9988175..895ae325ff 100644
--- a/modules/codec/avcodec/dxva2.c
+++ b/modules/codec/avcodec/dxva2.c
@@ -682,7 +682,7 @@ static int DxCreateVideoDecoder(vlc_va_t *va, int codec_id,
     CoTaskMemFree(cfg_list);
     if (cfg_score <= 0) {
         msg_Err(va, "Failed to find a supported decoder configuration");
-        return VLC_EGENERIC;
+        goto error;
     }
 
     /* Create the decoder */

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to