From 0f92a4b499b422a409227736d0ea9df1a8ab472c Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Thu, 17 Jun 2021 12:15:38 +0200 Subject: [PATCH] nvidia/cuda/obs: Release stream before context --- source/nvidia/cuda/nvidia-cuda-obs.cpp | 1 + 1 file changed, 1 insertion(+) 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();