summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/kernel
diff options
context:
space:
mode:
authorElena Zaretskaya <sweetiebrier@yandex.ru>2016-04-08 12:29:25 +0400
committerElena Zaretskaya <sweetiebrier@yandex.ru>2016-05-04 10:57:47 +0000
commit8d45759432e7f954360b76ddeaf2b09acee8606e (patch)
tree46970d901731e1bc61320120b3025865d8e941ea /tests/auto/widgets/kernel
parentb3e9144c3a326af26d94e0cbd448357d3072a650 (diff)
Fix segfault when exiting app running under eglfs
In function QWindow::destroy() the platformWindow is destroyed (QEglFSWindow in this case), but after that the QSurface destructor is called (qsurface.cpp:127), where access to the opengl context is performed (QOpenGLContext::currentContext()->doneCurrent()). Therefore the surface pointer is deleted earlier (gbm_surface_destroy) than the working with it (eglMakeCurrent) is finished. But the event QPlatformSurfaceEvent, that is sent before deleting platformWindow, isn't processed (qwindow.cpp:1665), though we can perform doneCurrent() in the handler of QPlatformSurfaceEvent. The full description with valgrind stacks on bugreports. Task-number: QTBUG-52399 Change-Id: I69035dfd8ba5b5eeec243bc0edd3f571dc9525f9 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
Diffstat (limited to 'tests/auto/widgets/kernel')
0 files changed, 0 insertions, 0 deletions