diff --git a/src/plugins/debugger/threadshandler.cpp b/src/plugins/debugger/threadshandler.cpp index 5b588bfb1c7..3ca82f6dd3f 100644 --- a/src/plugins/debugger/threadshandler.cpp +++ b/src/plugins/debugger/threadshandler.cpp @@ -461,7 +461,7 @@ void ThreadsHandler::updateThreads(const GdbMi &data) // m_currentIndex = -1; // } - const std::vector &items = data["threads"].children(); + const std::vector items = data["threads"].children(); const int n = items.size(); for (int index = 0; index != n; ++index) { const GdbMi item = items[index];