From: Liang Jian Date: Tue, 1 Apr 2014 07:16:28 +0000 (+0800) Subject: Fix QSGGeometry object leak X-Git-Tag: upstream/5.2.95+rc1~2^2~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=feaa55716486711e6499ae1cc2c84326642f3daa;p=platform%2Fupstream%2Fqtmultimedia.git Fix QSGGeometry object leak Set QSGNode::OwnsGeometry flag to QSGVideoNode, otherwise the QSGGeometry object created in QSGVideoNode::setTexturedRectGeometry() will be leaked. Change-Id: I383b4fe2ff8c7921d2c9c101d4d90fac5a08365a Reviewed-by: Yoann Lopes --- diff --git a/src/qtmultimediaquicktools/qsgvideonode_p.cpp b/src/qtmultimediaquicktools/qsgvideonode_p.cpp index b958180..6fbc144 100644 --- a/src/qtmultimediaquicktools/qsgvideonode_p.cpp +++ b/src/qtmultimediaquicktools/qsgvideonode_p.cpp @@ -46,6 +46,7 @@ QT_BEGIN_NAMESPACE QSGVideoNode::QSGVideoNode() : m_orientation(-1) { + setFlag(QSGNode::OwnsGeometry); } /* Helpers */