Fix memory leak 38/190338/1
authorhyunho <hhstark.kang@samsung.com>
Mon, 1 Oct 2018 06:12:30 +0000 (15:12 +0900)
committerhyunho <hhstark.kang@samsung.com>
Mon, 1 Oct 2018 06:13:04 +0000 (15:13 +0900)
Change-Id: I9182c7dfd92e8f40ceb17489e21d2cc7ffec39e0
Signed-off-by: hyunho <hhstark.kang@samsung.com>
unittest/src/test-editables-manager.cc

index d9f2010..81df0ea 100644 (file)
@@ -45,9 +45,9 @@ TEST_F(EDITABLES_MANAGER, StoreContext)
   bundle* b = bundle_create();
   bundle_add_str(b, "TEST_KEY", "TEST_VALUE");
 
-  Bundle* bundle = new Bundle(b);
+  Bundle bundle(b);
   EditablesManager::GetInst(true).StoreContext(10, "org.tizen.mock_provider/test",
-        *bundle);
+        bundle);
   int ret = EditablesManager::GetInst(true).DeleteContext(
         10, "org.tizen.mock_provider/test");
   EXPECT_EQ(ret, 0);