summaryrefslogtreecommitdiff
path: root/src/appMain/life_cycle.cc
diff options
context:
space:
mode:
authorKozoriz <kozorizandriy@gmail.com>2016-04-20 17:54:47 +0300
committerKozoriz <kozorizandriy@gmail.com>2016-04-25 16:35:16 +0300
commit72723be0357114617d87be396baba7a244a32b6e (patch)
tree07e3df82351c73f53291255bf18bcea09cf44935 /src/appMain/life_cycle.cc
parent48f4d233ec6ee321292187df48f0adbfe1e3a52e (diff)
downloadsdl_core-72723be0357114617d87be396baba7a244a32b6e.tar.gz
Correctives after review
Diffstat (limited to 'src/appMain/life_cycle.cc')
-rw-r--r--src/appMain/life_cycle.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/appMain/life_cycle.cc b/src/appMain/life_cycle.cc
index 7e542d119b..18de370018 100644
--- a/src/appMain/life_cycle.cc
+++ b/src/appMain/life_cycle.cc
@@ -68,7 +68,7 @@ void StopThread(System::Thread* thread) {
}
} // namespace
-LifeCycle::LifeCycle(profile::Profile& profile)
+LifeCycle::LifeCycle(const profile::Profile& profile)
: transport_manager_(NULL)
, protocol_handler_(NULL)
, connection_handler_(NULL)
@@ -361,8 +361,10 @@ void LifeCycle::StopComponents() {
security_manager_->RemoveListener(app_manager_);
LOG4CXX_INFO(logger_, "Destroying Crypto Manager");
delete crypto_manager_;
+ crypto_manager_ = NULL;
LOG4CXX_INFO(logger_, "Destroying Security Manager");
delete security_manager_;
+ security_manager_ = NULL;
}
#endif // ENABLE_SECURITY
protocol_handler_->Stop();
@@ -378,6 +380,7 @@ void LifeCycle::StopComponents() {
transport_manager_->Visibility(false);
transport_manager_->Stop();
delete transport_manager_;
+ transport_manager_ = NULL;
LOG4CXX_INFO(logger_, "Stopping Connection Handler.");
DCHECK_OR_RETURN_VOID(connection_handler_);
@@ -400,6 +403,7 @@ void LifeCycle::StopComponents() {
LOG4CXX_INFO(logger_, "Destroying Application Manager.");
DCHECK(app_manager_);
delete app_manager_;
+ app_manager_ = NULL;
LOG4CXX_INFO(logger_, "Destroying HMI Message Handler and MB adapter.");