forked from qt-creator/qt-creator
Valgrind: Fix crash when missing stacks
Change-Id: I69896f0d0c428f158bdb071b08a1c4b9f031183f Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -485,6 +485,10 @@ void Parser::Private::parseError()
|
||||
while (auxs.size() < frames.size())
|
||||
auxs.prepend(XauxWhat());
|
||||
|
||||
//add empty stacks until sizes match
|
||||
while (frames.size() < auxs.size())
|
||||
frames.push_back(QVector<Frame>());
|
||||
|
||||
QVector<Stack> stacks;
|
||||
for (int i = 0; i < auxs.size(); ++i)
|
||||
stacks.append(makeStack(auxs[i], frames[i]));
|
||||
|
Reference in New Issue
Block a user