correctly pass user_data to destructor callbacks
diff --git a/test/driver_stub/cl.c b/test/driver_stub/cl.c
index b106d3e..733a2aa 100644
--- a/test/driver_stub/cl.c
+++ b/test/driver_stub/cl.c
@@ -368,10 +368,10 @@
context,
pfn_notify,
user_data);
- pfn_notify(context, NULL);
+ pfn_notify(context, user_data);
test_icd_stub_log("setcontextdestructor_callback(%p, %p)\n",
context,
- NULL);
+ user_data);
test_icd_stub_log("Value returned: %d\n", return_value);
return return_value;
@@ -713,10 +713,10 @@
memobj,
pfn_notify,
user_data);
- pfn_notify(memobj, NULL);
+ pfn_notify(memobj, user_data);
test_icd_stub_log("setmemobjectdestructor_callback(%p, %p)\n",
memobj,
- NULL);
+ user_data);
test_icd_stub_log("Value returned: %d\n", return_value);
return return_value;