summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-12-03 22:59:02 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-12-03 22:59:02 (GMT)
commit5ec35c0756464ec512de0961c2ae41bec39ac2f7 (patch)
tree64b9b84eb003301ac728f174078124a2f99709e1 /src/declarative/graphicsitems
parent83162e22f9b4d59f7bcf9c2625a627aa7b8a0d03 (diff)
downloadQt-5ec35c0756464ec512de0961c2ae41bec39ac2f7.zip
Qt-5ec35c0756464ec512de0961c2ae41bec39ac2f7.tar.gz
Qt-5ec35c0756464ec512de0961c2ae41bec39ac2f7.tar.bz2
Minor optimizations.
Diffstat (limited to 'src/declarative/graphicsitems')
-rw-r--r--src/declarative/graphicsitems/qmlgraphicsitem.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicsitem.cpp b/src/declarative/graphicsitems/qmlgraphicsitem.cpp
index 1bf1089..a858d87 100644
--- a/src/declarative/graphicsitems/qmlgraphicsitem.cpp
+++ b/src/declarative/graphicsitems/qmlgraphicsitem.cpp
@@ -1491,6 +1491,7 @@ QmlGraphicsItem::~QmlGraphicsItem()
d->dependantAnchors.clear();
delete d->_anchorLines; d->_anchorLines = 0;
delete d->_anchors; d->_anchors = 0;
+ delete d->_stateGroup; d->_stateGroup = 0;
}
/*!
@@ -2620,7 +2621,7 @@ QmlStateGroup *QmlGraphicsItemPrivate::states()
{
Q_Q(QmlGraphicsItem);
if (!_stateGroup) {
- _stateGroup = new QmlStateGroup(q);
+ _stateGroup = new QmlStateGroup;
if (!_componentComplete)
_stateGroup->classBegin();
QObject::connect(_stateGroup, SIGNAL(stateChanged(QString)),