summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConlain Kelly <conlain.k@gmail.com>2018-07-25 16:28:00 -0400
committerConlain Kelly <conlain.k@gmail.com>2018-07-25 16:28:00 -0400
commit26f09adb7435f8e9770eebafbc35808135576695 (patch)
treee60712340779896dd4700351739a4fcae14150c6
parent5bf976c98f56a1d6867114ffe622eff2cc8785fd (diff)
downloadsdl_core-fix/invalid_iterator.tar.gz
Fix invalid iteration segfault on shutdownfix/invalid_iterator
-rw-r--r--src/components/hmi_message_handler/src/mb_controller.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/hmi_message_handler/src/mb_controller.cc b/src/components/hmi_message_handler/src/mb_controller.cc
index 8d3b11add5..4f46026039 100644
--- a/src/components/hmi_message_handler/src/mb_controller.cc
+++ b/src/components/hmi_message_handler/src/mb_controller.cc
@@ -222,7 +222,7 @@ void CMessageBrokerController::exitReceivingThread() {
it;
for (it = mConnectionList.begin(); it != mConnectionList.end();) {
(*it)->Shutdown();
- mConnectionList.erase(it++);
+ it = mConnectionList.erase(it);
}
mConnectionListLock.Release();