memory leak fixed
This commit is contained in:
parent
12cd9a16b1
commit
698c29d925
@ -161,7 +161,11 @@ QSGNode* QskPageIndicatorSkinlet::updateBulletsNode(
|
|||||||
|
|
||||||
// if count has decreased we need to remove superfluous nodes
|
// if count has decreased we need to remove superfluous nodes
|
||||||
while ( bulletNode->nextSibling() != nullptr )
|
while ( bulletNode->nextSibling() != nullptr )
|
||||||
|
{
|
||||||
|
auto sibling = bulletNode->nextSibling();
|
||||||
node->removeChildNode( bulletNode->nextSibling() );
|
node->removeChildNode( bulletNode->nextSibling() );
|
||||||
|
delete sibling;
|
||||||
|
}
|
||||||
|
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user