Commit 50e0ac9a authored by Eike Ziller's avatar Eike Ziller Committed by hjk
Browse files

Fix crash in valgrind suppression dialog.

Task-number: QTCREATORBUG-7235

Change-Id: I097ca267725873b4c08a4722d1426d5c7d17a61e
Reviewed-by: default avatarhjk <>
parent a7a3941c
......@@ -78,7 +78,7 @@ static QString suppressionText(const Error &error)
// we take the last stack frame and append the suppression kind, e.g.:
// QDebug::operator<<(bool) [Memcheck:Cond]
if (!error.stacks().isEmpty() && !error.stacks().first().frames().isEmpty()) {
const Frame &frame = error.stacks().first().frames().first();
const Frame frame = error.stacks().first().frames().first();
QString newName;
if (!frame.functionName().isEmpty())
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment