Hi, Hi think there's a COM reference leak here https://github.com/microsoft/Windows-Camera/blob/master/Samples/VirtualCamera/VirtualCameraMediaSource/SimpleMediaSource.cpp#L37 auto ptr = winrt::make_self<SimpleMediaStream>(); // +1 m_streamList[i] = ptr.detach(); // +2 It's caused by the mix between WIL and C++/WinRT This could be fixed by something like this for example: m_streamList[i].attach(ptr.detach());