We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d39870b commit 65edd6bCopy full SHA for 65edd6b
source/adapters/level_zero/memory.cpp
@@ -1746,7 +1746,7 @@ ur_result_t urMemBufferCreateWithNativeHandle(
1746
ur_mem_handle_t
1747
*Mem ///< [out] pointer to handle of buffer memory object created.
1748
) {
1749
- bool OwnNativeHandle = Properties->isNativeHandleOwned;
+ bool OwnNativeHandle = Properties ? Properties->isNativeHandleOwned : false;
1750
1751
std::shared_lock<ur_shared_mutex> Lock(Context->Mutex);
1752
0 commit comments