test: Prevent memory leak 26/225026/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20200316.155320 accepted/tizen/5.5/unified/wearable/hotfix/20201027.093050 submit/tizen_5.5/20200218.023333 submit/tizen_5.5/20200218.235314 submit/tizen_5.5/20200219.214104 submit/tizen_5.5/20200220.223429 submit/tizen_5.5/20200303.215650 submit/tizen_5.5/20200313.024520 submit/tizen_5.5/20200315.214302 submit/tizen_5.5_wearable_hotfix/20201026.184309
authorJunsuChoi <jsuya.choi@samsung.com>
Fri, 14 Feb 2020 09:57:49 +0000 (18:57 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Mon, 17 Feb 2020 00:43:27 +0000 (09:43 +0900)
Change-Id: I30e4571617f6cfb171b9ac6d8535d0221680859a

tests/no-ui-scenarios/ListGroupTest.cpp
tests/no-ui-scenarios/ListItemTest.cpp

index 2f3288e..acd39b6 100644 (file)
@@ -22,6 +22,7 @@ TEST(ListGroup, testListGroup)
 {
        auto lg = new ListGroup("Very Simple Group");
        EXPECT_STRCASEEQ("Very Simple Group", lg->name_.c_str());
+       delete lg;
 }
 
 int main(int argc, char *argv[])
index 8322df2..5db60e9 100644 (file)
@@ -24,6 +24,7 @@ TEST(ListItem, testListItem)
        auto li = new ListItem("TestTitle", "testTitle very long description");
        EXPECT_STRCASEEQ("TestTitle", li->title_.value_.c_str());
        EXPECT_STRCASEEQ("testTitle very long description", li->description_.value_.c_str());
+       delete li;
 }
 
 int main(int argc, char *argv[])