forked from qt-creator/qt-creator
Editor: fixed call of deleted pointer in TipLabel
Task-number: QTCREATORBUG-6950 Change-Id: Ib2e8adf1eceb3b4e55932618e5aa49543c39375d Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -75,8 +75,7 @@ QTipLabel::QTipLabel(QWidget *parent) :
|
||||
|
||||
QTipLabel::~QTipLabel()
|
||||
{
|
||||
if (m_tipContent)
|
||||
delete m_tipContent;
|
||||
delete m_tipContent;
|
||||
}
|
||||
|
||||
bool QTipLabel::isInteractive() const
|
||||
@@ -86,9 +85,9 @@ bool QTipLabel::isInteractive() const
|
||||
|
||||
void QTipLabel::setContent(const TipContent &content)
|
||||
{
|
||||
if (m_tipContent)
|
||||
delete m_tipContent;
|
||||
TextEditor::TipContent *tmpTipContent = m_tipContent;
|
||||
m_tipContent = content.clone();
|
||||
delete tmpTipContent;
|
||||
}
|
||||
|
||||
const TipContent &QTipLabel::content() const
|
||||
|
||||
Reference in New Issue
Block a user