diff options
author | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2010-03-29 13:55:24 (GMT) |
---|---|---|
committer | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2010-03-29 15:52:12 (GMT) |
commit | 0c5524e73848b95276f13c384d2c711188936deb (patch) | |
tree | a77b125f23f5acfaeca73a383d2f96df746c405b /doc/src/snippets/code/src_opengl_qgl.cpp | |
parent | 32a182c25104e6e49fc965a168957acff52a2b53 (diff) | |
download | Qt-0c5524e73848b95276f13c384d2c711188936deb.zip Qt-0c5524e73848b95276f13c384d2c711188936deb.tar.gz Qt-0c5524e73848b95276f13c384d2c711188936deb.tar.bz2 |
Fixed crash in Phonon MMF backend during application shutdown
During application shutdown, DsaVideoPlayer::handleVideoWindowChanged
is called. At this point, the application's main window has been closed
and therefore QApplication::activeWindow() returns 0. This leads to a
crash.
This patch ensures that a null return value from
QApplication::activeWindow(), and the resulting zero value of
DsaVideoPlayer::m_window, are handled gracefully.
Reviewed-by: Frans Englich
Diffstat (limited to 'doc/src/snippets/code/src_opengl_qgl.cpp')
0 files changed, 0 insertions, 0 deletions