diff -r 3e2da88830cd -r a33bf25e6f72 src/gui/kernel/qwidget_s60.cpp --- a/src/gui/kernel/qwidget_s60.cpp Wed Aug 18 10:37:55 2010 +0300 +++ b/src/gui/kernel/qwidget_s60.cpp Thu Sep 02 21:20:32 2010 +0300 @@ -1225,7 +1225,8 @@ // At this point the backing store should already be destroyed // so we flush the command buffer to ensure that the freeing of // those resources and deleting the window can happen "atomically" - S60->wsSession().Flush(); + if (qApp) + S60->wsSession().Flush(); } }