Skip to content
Snippets Groups Projects
Verified Commit 7645ab17 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix memory leak of animated image textures

parent 374ad0a8
No related branches found
No related tags found
No related merge requests found
Pipeline #1675 passed
......@@ -152,8 +152,10 @@ MxcAnimatedImage::updatePaintNode(QSGNode *oldNode, QQuickItem::UpdatePaintNodeD
imageDirty = false;
QSGImageNode *n = static_cast<QSGImageNode *>(oldNode);
if (!n)
if (!n) {
n = window()->createImageNode();
n->setOwnsTexture(true);
}
// n->setTexture(nullptr);
auto img = movie.currentImage();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment