forked from qt-creator/qt-creator
Fix crash in valgrind suppression dialog.
Task-number: QTCREATORBUG-7235 Change-Id: I097ca267725873b4c08a4722d1426d5c7d17a61e Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -78,7 +78,7 @@ static QString suppressionText(const Error &error)
|
|||||||
// we take the last stack frame and append the suppression kind, e.g.:
|
// we take the last stack frame and append the suppression kind, e.g.:
|
||||||
// QDebug::operator<<(bool) [Memcheck:Cond]
|
// QDebug::operator<<(bool) [Memcheck:Cond]
|
||||||
if (!error.stacks().isEmpty() && !error.stacks().first().frames().isEmpty()) {
|
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;
|
QString newName;
|
||||||
if (!frame.functionName().isEmpty())
|
if (!frame.functionName().isEmpty())
|
||||||
|
|||||||
Reference in New Issue
Block a user