Prevent crash in QGLGlyphCache due to dangling context references.
authorSamuel Rødal <samuel.rodal@nokia.com>
Tue, 14 Sep 2010 12:18:27 +0000 (14:18 +0200)
committerSamuel Rødal <samuel.rodal@nokia.com>
Tue, 14 Sep 2010 12:26:03 +0000 (14:26 +0200)
commitcb764eaf91e3a8ef30b280671d5c991ec926d14c
tree751ffafc3570ef37eeb591057c70622fb75f5380
parent05eb27a2007ebc1cae40c6331ee8b4d2fb76c1d9
Prevent crash in QGLGlyphCache due to dangling context references.

We need to clear the context from the cache when it's destroyed even if
it doesn't belong to a widget.

Task-number: QTBUG-13622
Reviewed-by: Trond
src/opengl/qpaintengine_opengl.cpp