Browse Source

Merge pull request #196 from milleniumbug/master

Fixed minor memory leak
merge-requests/365/head
Ole Christian Eidheim 10 years ago
parent
commit
d2bb946a5d
  1. 4
      src/project_build.cc

4
src/project_build.cc

@ -2,9 +2,9 @@
#include "config.h"
std::unique_ptr<Project::Build> Project::get_build(const boost::filesystem::path &path) {
auto cmake=new CMake(path);
std::unique_ptr<Project::Build> cmake(new CMake(path));
if(!cmake->project_path.empty())
return std::unique_ptr<Project::Build>(cmake);
return cmake;
else
return std::unique_ptr<Project::Build>(new Project::Build());
}

Loading…
Cancel
Save