diff --git a/src/controls/QskPageIndicatorSkinlet.cpp b/src/controls/QskPageIndicatorSkinlet.cpp index 2a134d89..3bbcdf63 100644 --- a/src/controls/QskPageIndicatorSkinlet.cpp +++ b/src/controls/QskPageIndicatorSkinlet.cpp @@ -161,7 +161,11 @@ QSGNode* QskPageIndicatorSkinlet::updateBulletsNode( // if count has decreased we need to remove superfluous nodes while ( bulletNode->nextSibling() != nullptr ) + { + auto sibling = bulletNode->nextSibling(); node->removeChildNode( bulletNode->nextSibling() ); + delete sibling; + } return node; }