Skip to content

Commit

Permalink
IOS: Fixes a small memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Bénony committed Jan 6, 2016
1 parent 99844a8 commit cfa9172
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion devtools/create_project/xcode.cpp
Expand Up @@ -443,8 +443,10 @@ void XcodeProvider::setupFrameworksBuildPhase(const BuildSetup &setup) {

std::string absoluteOutputDir;
#ifdef POSIX
absoluteOutputDir = realpath(setup.outputDir.c_str(), NULL);
char *c_path = realpath(setup.outputDir.c_str(), NULL);
absoluteOutputDir = c_path;
absoluteOutputDir += "/lib";
free(c_path);
#else
absoluteOutputDir = "lib";
#endif
Expand Down

0 comments on commit cfa9172

Please sign in to comment.