diff --git a/src/platform/linux/cuda.cpp b/src/platform/linux/cuda.cpp index b5374b18..5498d9a8 100644 --- a/src/platform/linux/cuda.cpp +++ b/src/platform/linux/cuda.cpp @@ -702,6 +702,7 @@ namespace cuda { NVFBC_DESTROY_HANDLE_PARAMS params { NVFBC_DESTROY_HANDLE_PARAMS_VER }; + ctx_t ctx { handle }; if (func.nvFBCDestroyHandle(handle, ¶ms)) { BOOST_LOG(error) << "Couldn't destroy session handle: "sv << func.nvFBCGetLastErrorStr(handle); }