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:
David Schulz
2012-02-13 15:13:10 +01:00
committed by hjk
parent 87b1dc25a1
commit bdb8907993

View File

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