From e7cf7ec0a5b1d87bd6edb7cb19ac7fe524bfcad6 Mon Sep 17 00:00:00 2001 From: Alexander Suprunenko Date: Fri, 5 Apr 2019 16:13:29 +0300 Subject: [PATCH] removeFailedDependants fixed --- src/lib/graft/GraftletLoader.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/graft/GraftletLoader.cpp b/src/lib/graft/GraftletLoader.cpp index ca64fbe1..2db49059 100644 --- a/src/lib/graft/GraftletLoader.cpp +++ b/src/lib/graft/GraftletLoader.cpp @@ -381,16 +381,15 @@ std::vector GraftletLoader::Dependency if(!ok) break; } } - auto it0 = it_gr; - ++it_gr; if(!ok) { res.push_back(name); - m_graph.erase(it0); m_dll2ver.erase(name); + it_gr = m_graph.erase(it_gr); changed = true; break; } + else ++it_gr; } } return res;