diff options
author | Andrew den Exter <andrew.den-exter@nokia.com> | 2011-10-11 13:09:42 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-18 01:47:23 +0200 |
commit | 8ff1f926ea1d18b226060b4ea1bf6924eceba8c6 (patch) | |
tree | 702dfbdbd41a94469d778411ad263f73d4f18612 /src/declarative/items/qsgmousearea.cpp | |
parent | bca5c6d21711d5844c435bd41a71f8fe356a1038 (diff) |
Don't keep a cache of created QSGDragAttached objects.
It's unnecessary and can potentially return stale objects.
Change-Id: Ia04b9a58757ef06d3178e6a64e168f68abc1c9d8
Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'src/declarative/items/qsgmousearea.cpp')
-rw-r--r-- | src/declarative/items/qsgmousearea.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/items/qsgmousearea.cpp b/src/declarative/items/qsgmousearea.cpp index 4d14eaa565..a401b52e95 100644 --- a/src/declarative/items/qsgmousearea.cpp +++ b/src/declarative/items/qsgmousearea.cpp @@ -178,7 +178,7 @@ void QSGDrag::setFilterChildren(bool filter) QSGDragAttached *QSGDrag::qmlAttachedProperties(QObject *obj) { - return QSGDragAttached::properties(obj); + return new QSGDragAttached(obj); } QSGMouseAreaPrivate::QSGMouseAreaPrivate() |