mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-28 11:48:36 -06:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user