Commit e6d91682 authored by Kishen Maloor's avatar Kishen Maloor

SWIG/oc_core_res: Fix lifetime of add_device_cb

Signed-off-by: Kishen Maloor's avatarKishen Maloor <kishen.maloor@intel.com>
parent 83335ca2
Pipeline #1012 passed with stage
in 11 minutes and 28 seconds
......@@ -116,7 +116,7 @@ void jni_oc_core_add_device_callback(void *user_data)
jni_callback_data *user_data = (jni_callback_data *)malloc(sizeof *user_data);
user_data->jenv = jenv;
user_data->jcb_obj = JCALL1(NewGlobalRef, jenv, $input);
user_data->cb_valid = OC_CALLBACK_VALID_FOR_A_SINGLE_CALL;
user_data->cb_valid = OC_CALLBACK_VALID_TILL_SHUTDOWN;
jni_list_add(user_data);
$1 = jni_oc_core_add_device_callback;
$2 = user_data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment