summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2010-04-14 11:35:13 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2010-04-14 13:57:21 (GMT)
commit40a34e372c4a542ff408a16951d30c46024cae36 (patch)
tree537e093896c3a3867a1139dae4205b814a3288ba /src
parent5c42726aac64dd270dc5f7dd87ad925db2ee46cf (diff)
downloadQt-40a34e372c4a542ff408a16951d30c46024cae36.zip
Qt-40a34e372c4a542ff408a16951d30c46024cae36.tar.gz
Qt-40a34e372c4a542ff408a16951d30c46024cae36.tar.bz2
Fixed a crash on embedded due to uninitialized pointer.
The pointer is declared on all platforms, so obviously we should initialize and delete it on all platforms as well. Reviewed-by: Paul
Diffstat (limited to 'src')
-rw-r--r--src/gui/kernel/qapplication.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gui/kernel/qapplication.cpp b/src/gui/kernel/qapplication.cpp
index b0a23d4..5f5e29f 100644
--- a/src/gui/kernel/qapplication.cpp
+++ b/src/gui/kernel/qapplication.cpp
@@ -186,11 +186,9 @@ QApplicationPrivate::QApplicationPrivate(int &argc, char **argv, QApplication::T
gestureManager = 0;
gestureWidget = 0;
-#if defined(Q_WS_X11) || defined(Q_WS_WIN)
move_cursor = 0;
copy_cursor = 0;
link_cursor = 0;
-#endif
#if defined(Q_WS_WIN)
ignore_cursor = 0;
#endif
@@ -1045,11 +1043,9 @@ QApplication::~QApplication()
qt_clipboard = 0;
#endif
-#if defined(Q_WS_X11) || defined(Q_WS_WIN)
delete d->move_cursor; d->move_cursor = 0;
delete d->copy_cursor; d->copy_cursor = 0;
delete d->link_cursor; d->link_cursor = 0;
-#endif
#if defined(Q_WS_WIN)
delete d->ignore_cursor; d->ignore_cursor = 0;
#endif