IOS: Fixes a small memory leak

This commit is contained in:
Vincent Bénony 2015-12-04 12:26:14 +01:00
parent 99844a81b0
commit cfa9172a6e

View file

@ -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