Skip to content
  • Kyle Edwards's avatar
    cmGlobalUnixMakefileGenerator3: Fix memory leak warning · 613323a7
    Kyle Edwards authored
    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.
    613323a7