Fix crash in valgrind suppression dialog.

Task-number: QTCREATORBUG-7235

Change-Id: I097ca267725873b4c08a4722d1426d5c7d17a61e
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Eike Ziller
2012-04-18 15:04:40 +02:00
committed by hjk
parent a7a3941cc2
commit 50e0ac9a7d

View File

@@ -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())