diff options
author | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2011-03-23 11:09:52 (GMT) |
---|---|---|
committer | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2011-03-23 11:09:52 (GMT) |
commit | 4accdf44eb486e603425c5ee69e05b973915f8a6 (patch) | |
tree | d8974fbb00b5c5a4025c774e252d06c6aafe09bc | |
parent | 30dbb938701963c92fc911f59c72720741e556d1 (diff) | |
download | Qt-4accdf44eb486e603425c5ee69e05b973915f8a6.zip Qt-4accdf44eb486e603425c5ee69e05b973915f8a6.tar.gz Qt-4accdf44eb486e603425c5ee69e05b973915f8a6.tar.bz2 |
Add missing nullify for the s60 style's background pixmap pointer.
Qt apps would crash during orientation change without setting
m_background to null after deleting it.
Reviewed-by: Sami Merila
-rw-r--r-- | src/gui/styles/qs60style_s60.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/styles/qs60style_s60.cpp b/src/gui/styles/qs60style_s60.cpp index c5149a3..64d2ad2 100644 --- a/src/gui/styles/qs60style_s60.cpp +++ b/src/gui/styles/qs60style_s60.cpp @@ -1402,6 +1402,7 @@ QPixmap QS60StylePrivate::backgroundTexture(bool skipCreation) if (m_background->width() != applicationRect.Width() || m_background->height() != applicationRect.Height()) { delete m_background; + m_background = 0; createNewBackground = true; } } |