aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/qsgcontext.cpp
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@digia.com>2013-11-05 15:17:03 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-07 14:22:39 +0100
commit9d90a33c7f83a49919133cd8647b0503e18e6444 (patch)
treeddd76e413f901bb600f8a41e73a6325203bc3b1c /src/quick/scenegraph/qsgcontext.cpp
parent63e0ffb32a4a432ed57f31388fabff89b05cb8cc (diff)
Fix crash when invalidating QSGContext.
A pointer list was not cleared when invalidating the context, potentially holding dangling pointers after that. Change-Id: I0618c54ffa67b31b115901e8be3a6d3cd16dc844 Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com>
Diffstat (limited to 'src/quick/scenegraph/qsgcontext.cpp')
-rw-r--r--src/quick/scenegraph/qsgcontext.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/scenegraph/qsgcontext.cpp b/src/quick/scenegraph/qsgcontext.cpp
index 4ccbaca08e..1f219e735f 100644
--- a/src/quick/scenegraph/qsgcontext.cpp
+++ b/src/quick/scenegraph/qsgcontext.cpp
@@ -483,6 +483,7 @@ void QSGRenderContext::invalidate()
end = m_fontEnginesToClean.constEnd(); it != end; ++it) {
(*it)->clearGlyphCache(m_gl);
}
+ m_fontEnginesToClean.clear();
delete m_depthStencilManager;
m_depthStencilManager = 0;