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)