summaryrefslogtreecommitdiffstats
path: root/DartConfig.cmake
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2019-01-11 21:31:52 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2019-01-14 14:53:12 (GMT)
commit613323a78bf33e22f510e41c8733fe2bc8df606a (patch)
treee4631cdd35d74319c894334626c27b7b5fd1497c /DartConfig.cmake
parentbf2503089b19d1462be7838ed7364361481587d4 (diff)
downloadCMake-613323a78bf33e22f510e41c8733fe2bc8df606a.zip
CMake-613323a78bf33e22f510e41c8733fe2bc8df606a.tar.gz
CMake-613323a78bf33e22f510e41c8733fe2bc8df606a.tar.bz2
cmGlobalUnixMakefileGenerator3: Fix memory leak warning
this->Makefiles.empty() is called twice, leading clang scan-build to falsely believe that the delete statement was causing a memory leak. Fix this by using a unique_ptr to hold the temporary cmMakefile. This also has the benefit of making the code exception-safe.
Diffstat (limited to 'DartConfig.cmake')
0 files changed, 0 insertions, 0 deletions