From c650c2e474cb6a67c72c06c0ee186d7b29d1485d Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 26 Jul 2018 11:13:07 +1000 Subject: [PATCH] [dxgi/h264] fix failure to re-init h264 correctly --- host/Capture/DXGI.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/host/Capture/DXGI.cpp b/host/Capture/DXGI.cpp index a01a8368..fef153ad 100644 --- a/host/Capture/DXGI.cpp +++ b/host/Capture/DXGI.cpp @@ -246,6 +246,12 @@ bool DXGI::InitH264Capture() void DXGI::DeInitialize() { + if (m_h264) + { + delete m_h264; + m_h264 = NULL; + } + ReleaseFrame(); if (m_pointer)