From 1e0b7e527ff1a8aea21c27a1ef954ca0857ef7d5 Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Wed, 18 Feb 2015 12:50:12 +0100 Subject: [PATCH] Debugger: Fix crash when hitting a break point Change-Id: Ie1665f546ef683fc92a5a0cda20150886257844e Reviewed-by: hjk --- src/plugins/debugger/threadshandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];