summaryrefslogtreecommitdiff
path: root/tests/applications
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-09-08 18:17:13 +0200
committerLaszlo Agocs <laszlo.agocs@theqtcompany.com>2015-09-09 08:08:41 +0000
commit84ee5b304d1ab87bc2addb21fb684cc2b9a68d00 (patch)
tree0b055e4fa30a2f3e20d8b410a8c156a5c19f02c0 /tests/applications
parentf72a9398e5699b6aa417540e04bf5a0a911b7d0a (diff)
downloadqtlocation-84ee5b304d1ab87bc2addb21fb684cc2b9a68d00.tar.gz
Do not double delete in positioning test app
Otherwise it can crash on exit. Change-Id: I9e107bd94a6f8a6f2d6600e18a532d313534560c Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'tests/applications')
-rw-r--r--tests/applications/positioning_backend/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/applications/positioning_backend/main.cpp b/tests/applications/positioning_backend/main.cpp
index 99ca3578..454a8486 100644
--- a/tests/applications/positioning_backend/main.cpp
+++ b/tests/applications/positioning_backend/main.cpp
@@ -39,14 +39,14 @@ int main(int argc, char *argv[])
{
QApplication a(argc, argv);
- Widget w1;
- Widget w2;
+ Widget *w1 = new Widget;
+ Widget *w2 = new Widget;
QTabWidget tabWidget;
tabWidget.setTabPosition(QTabWidget::South);
- tabWidget.addTab(&w1, "Instance 1");
- tabWidget.addTab(&w2, "Instance 2");
+ tabWidget.addTab(w1, "Instance 1");
+ tabWidget.addTab(w2, "Instance 2");
tabWidget.show();
return a.exec();