Skip to content
This repository was archived by the owner on Jun 25, 2020. It is now read-only.

Commit d2bb946

Browse files
committed
Merge pull request #196 from milleniumbug/master
Fixed minor memory leak
2 parents 09b93b3 + 9c5f1bb commit d2bb946

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/project_build.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
#include "config.h"
33

44
std::unique_ptr<Project::Build> Project::get_build(const boost::filesystem::path &path) {
5-
auto cmake=new CMake(path);
5+
std::unique_ptr<Project::Build> cmake(new CMake(path));
66
if(!cmake->project_path.empty())
7-
return std::unique_ptr<Project::Build>(cmake);
7+
return cmake;
88
else
99
return std::unique_ptr<Project::Build>(new Project::Build());
1010
}

0 commit comments

Comments
 (0)