From ce5a924e8f215cc207803845d8df0416ee9773a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Mon, 27 Sep 2021 19:24:02 +0200 Subject: [PATCH] Fixed formal memory leak --- src/GUI/gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GUI/gui.cpp b/src/GUI/gui.cpp index 2640244a..ec41df6b 100644 --- a/src/GUI/gui.cpp +++ b/src/GUI/gui.cpp @@ -384,7 +384,7 @@ void GUI::createActions() _downloadDEMAction->setEnabled(false); _downloadDEMAction->setShortcut(DOWNLOAD_DEM_SHORTCUT); connect(_downloadDEMAction, &QAction::triggered, this, &GUI::downloadDEM); - _showDEMTilesAction = new QAction(tr("Show local DEM tiles")); + _showDEMTilesAction = new QAction(tr("Show local DEM tiles"), this); _showDEMTilesAction->setMenuRole(QAction::NoRole); connect(_showDEMTilesAction, &QAction::triggered, this, &GUI::showDEMTiles);