Commit bdb89079 authored by David Schulz's avatar David Schulz Committed by hjk

Editor: fixed call of deleted pointer in TipLabel

Task-number: QTCREATORBUG-6950
Change-Id: Ib2e8adf1eceb3b4e55932618e5aa49543c39375d
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 87b1dc25
......@@ -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
......
Markdown is supported
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