We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97f544b commit 9f113b3Copy full SHA for 9f113b3
1 file changed
source/lib/ze_lib.cpp
@@ -377,7 +377,9 @@ namespace ze_lib
377
uint32_t*);
378
auto pfnZelRegisterTeardownCallback = reinterpret_cast<zelRegisterTeardownCallback_t>(
379
GET_FUNCTION_PTR(loader, "zelRegisterTeardownCallback"));
380
- pfnZelRegisterTeardownCallback(staticLoaderTeardownCallback, &loaderTeardownCallback, &loaderTeardownCallbackIndex);
+ if (pfnZelRegisterTeardownCallback != nullptr) {
381
+ pfnZelRegisterTeardownCallback(staticLoaderTeardownCallback, &loaderTeardownCallback, &loaderTeardownCallbackIndex);
382
+ }
383
});
384
#endif
385
return result;
0 commit comments