[vlc-devel] [PATCH] hw:d3d9:dxva2_deinterlace: fix null pointer dereference

Steve Lhomme robux4 at videolabs.io
Mon Nov 27 08:42:11 CET 2017


CID #1462252
---
 modules/hw/d3d9/dxva2_deinterlace.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/hw/d3d9/dxva2_deinterlace.c b/modules/hw/d3d9/dxva2_deinterlace.c
index 47dc4502d3..3326fa0318 100644
--- a/modules/hw/d3d9/dxva2_deinterlace.c
+++ b/modules/hw/d3d9/dxva2_deinterlace.c
@@ -492,7 +492,8 @@ int D3D9OpenDeinterlace(vlc_object_t *obj)
 
     return VLC_SUCCESS;
 error:
-    CoTaskMemFree(processorGUIDs);
+    if (processorGUIDs)
+        CoTaskMemFree(processorGUIDs);
     if (sys && sys->processor)
         IDirectXVideoProcessor_Release( sys->processor );
     if (processor)
-- 
2.14.2



More information about the vlc-devel mailing list