Change-Id: I595d2fc6c92939a4b4d048e0f0eb97db3d903db1
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5669
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jon@joncruz.org>
(cherry picked from commit
d251a8dac04c1fb97b5f7eb8c1956b09ce21c02f)
Reviewed-on: https://gerrit.iotivity.org/gerrit/5725
if (g_context)
{
(*env)->DeleteGlobalRef(env, g_context);
+ g_context = NULL;
}
if (g_connectedDeviceSet)
{
(*env)->DeleteGlobalRef(env, g_connectedDeviceSet);
+ g_connectedDeviceSet = NULL;
}
return res;