diff --git a/source/nvidia/cuda/nvidia-cuda-obs.cpp b/source/nvidia/cuda/nvidia-cuda-obs.cpp index c99a092a..0be2ebd5 100644 --- a/source/nvidia/cuda/nvidia-cuda-obs.cpp +++ b/source/nvidia/cuda/nvidia-cuda-obs.cpp @@ -44,6 +44,7 @@ streamfx::nvidia::cuda::obs::~obs() auto stack = _context->enter(); _stream->synchronize(); _context->synchronize(); + _stream.reset(); } _context.reset(); _cuda.reset();