From 80b71fe2f46bc0d5ff866963898517a12b29a467 Mon Sep 17 00:00:00 2001 From: Diego Casella Date: Fri, 29 Apr 2011 11:22:44 +0200 Subject: [PATCH] check m_declarativeItemContainer before deleting it --- declarativeimports/core/tooltip.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/declarativeimports/core/tooltip.cpp b/declarativeimports/core/tooltip.cpp index ee04af81d..c09cfc3f7 100644 --- a/declarativeimports/core/tooltip.cpp +++ b/declarativeimports/core/tooltip.cpp @@ -46,7 +46,9 @@ ToolTipProxy::ToolTipProxy(QObject *parent) ToolTipProxy::~ToolTipProxy() { - delete m_declarativeItemContainer; + if (!m_declarativeItemContainer) { + delete m_declarativeItemContainer; + } } QGraphicsObject *ToolTipProxy::target() const