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 <yoann.lopes@digia.com>
This commit is contained in:
committed by
The Qt Project
parent
36649887e8
commit
feaa557164
@@ -46,6 +46,7 @@ QT_BEGIN_NAMESPACE
|
|||||||
QSGVideoNode::QSGVideoNode()
|
QSGVideoNode::QSGVideoNode()
|
||||||
: m_orientation(-1)
|
: m_orientation(-1)
|
||||||
{
|
{
|
||||||
|
setFlag(QSGNode::OwnsGeometry);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Helpers */
|
/* Helpers */
|
||||||
|
|||||||
Reference in New Issue
Block a user