diff options
author | Conlain Kelly <conlain.k@gmail.com> | 2018-07-25 16:28:00 -0400 |
---|---|---|
committer | Conlain Kelly <conlain.k@gmail.com> | 2018-07-25 16:28:00 -0400 |
commit | 26f09adb7435f8e9770eebafbc35808135576695 (patch) | |
tree | e60712340779896dd4700351739a4fcae14150c6 | |
parent | 5bf976c98f56a1d6867114ffe622eff2cc8785fd (diff) | |
download | sdl_core-26f09adb7435f8e9770eebafbc35808135576695.tar.gz |
Fix invalid iteration segfault on shutdownfix/invalid_iterator
-rw-r--r-- | src/components/hmi_message_handler/src/mb_controller.cc | 2 |
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(); |