From: Kamil Rojewski Date: Fri, 22 Apr 2016 11:27:59 +0000 (+0200) Subject: switched raw ptrs to shared_ptrs to avoid leaks X-Git-Tag: accepted/tizen/common/20160504.125257~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e11d4d9bb83e1c048120a81b77644ab7e011627;p=platform%2Fcore%2Fappfw%2Fwgt-backend.git switched raw ptrs to shared_ptrs to avoid leaks Must be submitted with: - https://review.tizen.org/gerrit/67906 Change-Id: I5305bec45ff0484d00378a65269f3304dada449c --- 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));