[IOT-2957] Fix for crash on some Android phones. 57/23957/3
authorLarry Sachs <larry.j.sachs@intel.com>
Thu, 18 Jan 2018 18:17:13 +0000 (10:17 -0800)
committerLarry Sachs <larry.j.sachs@intel.com>
Thu, 18 Jan 2018 19:26:46 +0000 (19:26 +0000)
commit4f1a2be374123301fd58e424a462eb8d5d40495e
tree3f56150d0026f6bcad4a5c1f0619c3f755d11e89
parentc6916eea3d199b5700dd70b806d94c9db2df1ddf
[IOT-2957] Fix for crash on some Android phones.

Some Android phones (LG, HTC) crashed on removing listeners when
compiled WITH_CLOUD=1.  By reversing the order in which the
listeners were removed, the crash does not occur.

Bug: https://jira.iotivity.org/browse/IOT-2957

Change-Id: I32facaaf9a93ad6d0c7125e791c11618aa527587
Signed-off-by: Larry Sachs <larry.j.sachs@intel.com>
java/jni/JniOnDeleteListener.cpp
java/jni/JniOnGetListener.cpp
java/jni/JniOnObserveListener.cpp
java/jni/JniOnPostListener.cpp