Skip to content

Commit 66d74be

Browse files
committed
Directly rely on the function pointer to destroy the instance platform.
1 parent 7bd5930 commit 66d74be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

loader/icd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ void khrIcdVendorAdd(const char *libraryName)
338338
#if defined(CL_ENABLE_LOADER_MANAGED_DISPATCH)
339339
if (instance_platform)
340340
{
341-
vendor->clIcdDestroyInstancePlatform(instance_platform);
341+
p_clIcdDestroyInstancePlatform(instance_platform);
342342
}
343343
#endif
344344
free(vendor);

0 commit comments

Comments
 (0)