Skip to content
Merged
1 change: 1 addition & 0 deletions sycl/plugins/unified_runtime/ur/adapters/hip/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ urContextGetInfo(ur_context_handle_t hContext, ur_context_info_t propName,
UR_APIEXPORT ur_result_t UR_APICALL
urContextRelease(ur_context_handle_t hContext) {
if (hContext->decrementReferenceCount() == 0) {
hContext->invokeExtendedDeleters();
delete hContext;
}
return UR_RESULT_SUCCESS;
Expand Down