From fcbadd77a8e7a4d4e30931826a041607202e5182 Mon Sep 17 00:00:00 2001 From: Sil Vilerino Date: Wed, 22 Jan 2025 21:51:12 -0500 Subject: [PATCH] d3d12: Add NULL initialization for d3d12_video_enc::m_pVideoTexArrayDPBPool Reviewed-by: Jesse Natalie Reviewed by: Pohsiang (John) Hsu Reviewed-by: Jesse Natalie Part-of: --- src/gallium/drivers/d3d12/d3d12_video_enc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/d3d12/d3d12_video_enc.h b/src/gallium/drivers/d3d12/d3d12_video_enc.h index e1a76189c67..6cd929fb4ae 100644 --- a/src/gallium/drivers/d3d12/d3d12_video_enc.h +++ b/src/gallium/drivers/d3d12/d3d12_video_enc.h @@ -450,7 +450,7 @@ struct d3d12_video_encoder // and the pointer is stored on each d3d12_video_buffer // 2. On d3d12_video_buffer::destroy(), when all the slots // of the allocation pool are unused, the memory is released. - pipe_resource *m_pVideoTexArrayDPBPool; + pipe_resource *m_pVideoTexArrayDPBPool = NULL; std::shared_ptr m_spVideoTexArrayDPBPoolInUse; };