check m_declarativeItemContainer before deleting it

This commit is contained in:
Diego Casella 2011-04-29 11:22:44 +02:00
parent e3db04f3ff
commit 80b71fe2f4

View File

@ -46,7 +46,9 @@ ToolTipProxy::ToolTipProxy(QObject *parent)
ToolTipProxy::~ToolTipProxy()
{
delete m_declarativeItemContainer;
if (!m_declarativeItemContainer) {
delete m_declarativeItemContainer;
}
}
QGraphicsObject *ToolTipProxy::target() const