Fix defect issues in things manager
authorJihun Ha <jihun.ha@samsung.com>
Thu, 8 Oct 2015 01:54:28 +0000 (10:54 +0900)
committerMadan Lanka <lanka.madan@samsung.com>
Thu, 8 Oct 2015 07:16:58 +0000 (07:16 +0000)
Fixed issue CID: 82945, 82946, 82947, 82948, 82949

Change-Id: I7b4e8ac60751a5bb5c62aa1be05452aea16047ee
Signed-off-by: Jihun Ha <jihun.ha@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/3739
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
service/things-manager/unittests/ThingsManagerTest.cpp

index 8e960ea..2d018eb 100755 (executable)
@@ -1301,6 +1301,7 @@ TEST_F(ThingsManagerTest, testExecuteActionSetAllBulbOn)
         EXPECT_TRUE(result == OC_STACK_OK);
         result = 0;
     }
+    delete allBulbON;
 }
 
 //Execute actionset with NULL Resource
@@ -1378,6 +1379,8 @@ TEST_F(ThingsManagerTest, testExcecuteActionSetWithDelay)
         EXPECT_TRUE(result == OC_STACK_OK);
         result = 0;
     }
+
+    delete allBulbON;
 }
 
 //Execute actionset with Delay = 0
@@ -1416,6 +1419,8 @@ TEST_F(ThingsManagerTest, testExcecuteActionSetWithDelayEqulasZero)
         EXPECT_TRUE(result == OC_STACK_INVALID_PARAM);
         result = 0;
     }
+
+    delete allBulbON;
 }
 
 //Execute actionset with invalid Delay
@@ -1454,6 +1459,8 @@ TEST_F(ThingsManagerTest, testExcecuteActionSetWithInvalidDelay)
         EXPECT_TRUE(result == OC_STACK_INVALID_PARAM);
         result = 0;
     }
+
+    delete allBulbON;
 }
 
 //Execute actionset with delay on NULL Resource
@@ -1489,6 +1496,7 @@ TEST_F(ThingsManagerTest, testExcecuteActionSetWithDelayWithResourceNull)
     EXPECT_TRUE(result == OC_STACK_ERROR);
     result = 0;
 
+    delete allBulbON;
 }
 
 //Cancel ActionSet