From 6e11d4d9bb83e1c048120a81b77644ab7e011627 Mon Sep 17 00:00:00 2001 From: Kamil Rojewski Date: Fri, 22 Apr 2016 13:27:59 +0200 Subject: [PATCH] switched raw ptrs to shared_ptrs to avoid leaks Must be submitted with: - https://review.tizen.org/gerrit/67906 Change-Id: I5305bec45ff0484d00378a65269f3304dada449c --- src/wgt/wgt_app_query_interface.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wgt/wgt_app_query_interface.cc b/src/wgt/wgt_app_query_interface.cc index b45389c..68da917 100644 --- a/src/wgt/wgt_app_query_interface.cc +++ b/src/wgt/wgt_app_query_interface.cc @@ -64,9 +64,9 @@ std::string GetPkgIdFromPath(const std::string& path) { return {}; } bf::path config_path = tmp_path / "config.xml"; - std::vector handlers = { - new wgt::parse::WidgetHandler(), - new wgt::parse::TizenApplicationHandler() + std::vector> handlers = { + std::make_shared(), + std::make_shared() }; std::unique_ptr registry( new parser::ManifestHandlerRegistry(handlers)); -- 2.7.4