check m_declarativeItemContainer before deleting it
This commit is contained in:
parent
e3db04f3ff
commit
80b71fe2f4
@ -46,7 +46,9 @@ ToolTipProxy::ToolTipProxy(QObject *parent)
|
||||
|
||||
ToolTipProxy::~ToolTipProxy()
|
||||
{
|
||||
delete m_declarativeItemContainer;
|
||||
if (!m_declarativeItemContainer) {
|
||||
delete m_declarativeItemContainer;
|
||||
}
|
||||
}
|
||||
|
||||
QGraphicsObject *ToolTipProxy::target() const
|
||||
|
Loading…
Reference in New Issue
Block a user