From d040a8face402e5ecc7c99cdb4e976832592ce99 Mon Sep 17 00:00:00 2001 From: Igor Chorazewicz Date: Fri, 9 Aug 2024 21:38:29 +0000 Subject: [PATCH] [L0] Make destructor of the context virtual to make sure that v2::context will release all the resources on context destruction. --- source/adapters/level_zero/context.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/adapters/level_zero/context.hpp b/source/adapters/level_zero/context.hpp index dc70a2470c..fab54f3783 100644 --- a/source/adapters/level_zero/context.hpp +++ b/source/adapters/level_zero/context.hpp @@ -43,6 +43,8 @@ struct ur_context_handle_t_ : _ur_object { ur_context_handle_t_(ze_context_handle_t ZeContext) : ZeContext{ZeContext} {} + virtual ~ur_context_handle_t_() {} + // A L0 context handle is primarily used during creation and management of // resources that may be used by multiple devices. // This field is only set at ur_context_handle_t creation time, and cannot