Fix texture leaks in QQuickCanvasItem
authorCharles Yin <charles.yin@nokia.com>
Wed, 7 Mar 2012 00:20:06 +0000 (10:20 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 7 Mar 2012 00:40:57 +0000 (01:40 +0100)
commit4b2a7b063bd8a75dd10859d477e53c833fc844fa
treef1839cee674803ea259210fba84994a5a13fafb7
parent73ee7cb72e89ededacf90306f39110f1719e84c9
Fix texture leaks in QQuickCanvasItem

In commit be4c74948371ddf6f1ed260783b43b5a3d9e60a7 we removed the
QQuickCanvasItemNode, but textures are not automatically deleted with
QSGSimpleTextureNode, so add a very thin sub class of QSGSimpleTextureNode
to just cleanup canvas texture to avoid texture leaks.

Change-Id: I31aac1068e8218a75129b52afbbf30fb66e4bbf7
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/quick/items/context2d/qquickcanvasitem.cpp