summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/QCMake.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-03-23 13:27:36 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-03-23 13:27:44 (GMT)
commita4abf61520624bd94593b31192abf2c0b6fc4ea5 (patch)
treebec35c5915994953199b8288bd431ad2b1fd2b04 /Source/QtDialog/QCMake.cxx
parent8638c49f2a0b87c131be8f4d3147a2617938e30a (diff)
parentecc0086bfc754f5adc4e496ae025da4bb1796490 (diff)
downloadCMake-a4abf61520624bd94593b31192abf2c0b6fc4ea5.zip
CMake-a4abf61520624bd94593b31192abf2c0b6fc4ea5.tar.gz
CMake-a4abf61520624bd94593b31192abf2c0b6fc4ea5.tar.bz2
Merge topic 'cmake-gui-open-check'
ecc0086bfc cmake-gui: Fix use-after-free in Open-possible check Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4508
Diffstat (limited to 'Source/QtDialog/QCMake.cxx')
-rw-r--r--Source/QtDialog/QCMake.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/QtDialog/QCMake.cxx b/Source/QtDialog/QCMake.cxx
index eaf50f2..2543215 100644
--- a/Source/QtDialog/QCMake.cxx
+++ b/Source/QtDialog/QCMake.cxx
@@ -484,7 +484,7 @@ void QCMake::setWarnUnusedMode(bool value)
void QCMake::checkOpenPossible()
{
- auto data = this->BinaryDirectory.toLocal8Bit().data();
+ std::string data = this->BinaryDirectory.toLocal8Bit().data();
auto possible = this->CMakeInstance->Open(data, true);
emit openPossible(possible);
}