Fix IOT-504 issue of soft sensor manager
authorjk13 <jihyeok13.kim@samsung.com>
Wed, 29 Apr 2015 05:06:59 +0000 (14:06 +0900)
committerUze Choi <uzchoi@samsung.com>
Wed, 29 Apr 2015 06:56:11 +0000 (06:56 +0000)
1. Fix IOT-504 issue which related to negative TC.
   - re-init failed after init using invalid configuration.

Change-Id: I5a3acbbed2f02a35dd055a5c823cb9dde8cc31fe
Signed-off-by: jk13 <jihyeok13.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/868
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
service/soft-sensor-manager/SSMCore/src/SSMInterface/SSMCore.cpp

index b088d7e..023a040 100644 (file)
@@ -65,7 +65,9 @@ CLEANUP:
         res != SSM_E_INITIALIZED)
     {
         SAFE_RELEASE(g_pSoftSensorManager);
+        DestroyGlobalInstanceRepo();
     }
+
     return res;
 }