aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/quick/items/qquickwindow.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/quick/items/qquickwindow.cpp b/src/quick/items/qquickwindow.cpp
index 04539800a5..9ae2f5b20d 100644
--- a/src/quick/items/qquickwindow.cpp
+++ b/src/quick/items/qquickwindow.cpp
@@ -1127,6 +1127,13 @@ QQuickWindow::~QQuickWindow()
qDeleteAll(d->afterSwapJobs);
d->afterSwapJobs.clear();
d->renderJobMutex.unlock();
+
+ // It is important that the pixmap cache is cleaned up during shutdown.
+ // Besides playing nice, this also solves a practical problem that
+ // QQuickTextureFactory implementations in other libraries need
+ // have their destructors loaded while they the library is still
+ // loaded into memory.
+ QQuickPixmap::purgeCache();
}
/*!